CentOS user can't run setup unless under apache username/group.

I'm migrating data over from and old server. all data is under the same username:group --- constantly:constantly
example: drwxr--r-- 10 constantly constantly 4096 Apr 10 12:31 albums

i'm reinstalling "gallery" and i notice in setup(setup is done via the web interface), if the folders are not with the permissions apache:apache, setup fails.  "There was an error creating the directory structure within the storage directory. " Seems like Apache doesn't have permissions to other users folders.

How do i allow apache server to run as another user so files don't need to be under apache:apache? i shouldn't have to do the chown for it to work.  

I've never had an issue like this in the past.  Hopefully i'm making some sense here :)
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kent WSr. Network / Systems AdminCommented:
It sounds like you are trying to run the setup over the web installer, and it's failing due to permissions.

Usually, with web-installed apps like this under apache you *temporarily* chmod the directories so apache has write access.  This would the the directly structure it's installing *to*.  (/var/www/html/yaddayadda/) After the install, you change them back to previous permissions.  
You didn't include paths here, to I'm not sure if you are installing to,, like /var/www/html/constantly or /home/constantly or some other location.  
I wouldn't suggest you allow apache to run as another user, unless this is a private, non-internet connected machine.
The user that apache runs is is in the httpd.conf file for apache.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.