Welcome to WebmasterWorld Guest from 54.166.152.121

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Apache taking ownership of files

     
9:06 pm on Mar 10, 2012 (gmt 0)

10+ Year Member



I've just moved the site from one VPS to a new VPS using the Plesk migration tool, so I'm not sure if its a problem with plesk or the new VPS setup.

When the site was moved and I found some features/ sections not working I noticed that odd files and directory's were owned by Apache. Changing these back to the correct user/group cured the problems.

But now any files created by my site, my blog for example, are created under the user and group Apache which make them unusable unless I manually change user and group.

Any help advice thoughts greatly appreciated.
11:44 pm on Mar 10, 2012 (gmt 0)

WebmasterWorld Administrator incredibill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Apache doesn't own the files, some other task running as apache, like PHP, probably created those files. This is a very common problem with Plesk which using FastCGI solves but it creates a ton of new and more annoying problems.
2:40 pm on Mar 11, 2012 (gmt 0)

10+ Year Member



Apache doesn't own the files


Ok I understand

some other task running as apache, like PHP, probably created those files


Correct php does create them, PHP is running as an Apache_mod and safe mode is off. Exactly the same as on my old VPS so I don't understand why files/folders created with PHP have apache as owner/group and not the correct user/group.

Is there anything I can do to rectify this

Thanx for your time.
4:48 pm on Mar 17, 2012 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



What mode php runs with in your httpd.conf? (cgi, fastcgi etc)
 

Featured Threads

Hot Threads This Week

Hot Threads This Month