Page 1 of 1

php file uploads owned by apache

Posted: Fri Sep 25, 2009 1:47 pm
by atinoco
Greetings all

I'm fine tuning our linux box that we got at serverbeach, one of the issues that we noticed was that when a file was uploaded via php with a program like joomla, the file owner was apache, and not the plesk user, this made it impossible for our user to work with the files via ftp.

looking around i noticed that there a php module that can fix my problem called mod_suphp

followed this guide but can't get it to work, files are still owned by apache after upload, any ideas?

http://eitwebguru.com/installation-and- ... s/#more-32

thanks in advance

-Andres

Re: php file uploads owned by apache

Posted: Sat Sep 26, 2009 3:33 pm
by lvalics
Try to follow this one
http://www.grafxsoftware.com/faq.php/HO ... erver/1/4/

Will work, I can guarantee.
The one you pointed is incomplete.

Re: php file uploads owned by apache

Posted: Sat Sep 26, 2009 6:21 pm
by breun
When running PHP via mod_php, then all scripts are run as the webserver user (apache). Plesk 9 adds to option to run PHP via FastCGI, which runs the scripts as the file owner.