• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Files assigned to user "apache"

J

Joshua Sortino

Guest
When a program such as Joomla, Drupal, etc... is installed, and it creates a new file, the file's owner is always "apache" instead of the FTP user. This creates problems as I cannot delete the files through FTP (only through Plesk's file viewer.) Any idea why this is happening?
 
apache can only write the files as itself as it doesnt know who the real owner should be. so unless you set it to run as a fcgi or have something like suphp installed it will keep doing it.
 
plesk 9 can configure hosting so PHP runs as cgi application with the rights of ftp user.

note that most of vault applications (from APS catalog) requires PHP to run as apache module with safe_mode = off.
 
once again:

"plesk 9 can configure hosting so PHP runs as cgi application with the rights of ftp user."
 
how please?

my sites don't work after change php domain configuration as cgi or fast cgi application instead of apache module...
 
> my sites don't work after change php domain configuration as cgi or fast cgi application instead of apache module...

well, that's another problem.
 
Well, if there is no (supported) way to have dynamic ownership of files... is there a way I can at least set the permission to a user that will allow me to delete files via FTP? I'm tired of having to go into the server to reset the premissions so that I can delete/use the folder(or file) in FTP.
 
I just set up a root cron job to go in daily for the domains needing this and chown the subdirectories recursively.
 
If Fast-CGI doesn't work after reconfiguration, another alternative is possible : su-php
The server load will increase a little but you won't suffer a y longer from bad ownership on files and directory

I'm using this on Plesk 8.6 for almost a year and i don't want to upgrade to Plesk 9.0 as there is too many problems for the moment...

Here is the website that gave me the procedure to install and setup such apache module :

http://blog.unity-web.ch/2008/10/06/how-to-make-suphp-work-with-plesk-860-on-debian/

This is explained for Debian, but you cant easily adapt it to any other OS (the only difference is in the software package installation)
 
So the script HERE works well for you?

Have you found any problems or issues with the script, or made any changes that should be noted ?
 
Back
Top