php file uploads owned by apache

Community support for Plesk, CPanel, WebMin and others with insight from two of the founders of Plesk. Ask for help here! No question is too simple or complicated. :-)
atinoco
New Forum User
New Forum User
Posts: 3
Joined: Fri Sep 25, 2009 1:21 pm

php file uploads owned by apache

Unread post 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
lvalics
Forum User
Forum User
Posts: 38
Joined: Thu Feb 22, 2007 3:49 pm
Location: Romania
Contact:

Re: php file uploads owned by apache

Unread post 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.
Best regards,
Valics Lehel

Power Toys for PLESK
HOW TO: Setup a new box with PLESK
PLESK Crash Recovery Service
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: php file uploads owned by apache

Unread post 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.
Lemonbit Internet Dedicated Server Management
Post Reply