• 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.

FTP Permission Denied with correct user/group owner

R

Robert Steck

Guest
I have a PHP script that creates files/folders. I get permission denied when I try to modify the files from FTP. I have all the correct permissions and ownership. I tried running the php scripts as apache, cgi, fastcgi, and suphp. I was always end up with the same result - permission denied. I have restart the server also tried restarting the server.

Any help is appreciated it.
 
You should install mod_suphp and follow our tutorial and will work. Don't forget to chown the files to ftpuser after suphp is working.
 
You should install mod_suphp and follow our tutorial and will work. Don't forget to chown the files to ftpuser after suphp is working.

Did that. Like I said I have the CORRECT owner.
 
Are you sure suphp is working? You have your own php.ini? You need to check it, we run it now over 14 server of our won and work and installed now on over 500 server and no real issue was reported.
 
Yes it is running - I change a php file to 777 and it won't run and it creates files with the correct owner. I would be willing to pay someone to fix this if you are interested.

Let me explain this another way. I have two files. One that was created from a PHP script. One that I created in the FTP. I have the same owner/group and permissions on the two files. I cannot modify the one created from PHP through FTP. The other file (one created through FTP), I have no issues modifying.
 
mpm-itk and mod_ruid2 vs. suphp

Standard PHP module spends less time and memory to run PHP scripts than suPHP. Apache modules mpm-itk and mod_ruid2 can run Apache on virtual hosts under different system users, so standard PHP module can be used to run PHP code as domain or subdomain system user with minimal overhead.

New Plesk add-on can turn on/off mpm-itk or mod_ruid2 on specified domain in Plesk panel.

Run PHP as User This add-on for Parallels Plesk Panel allows to run PHP scripts as domain FTP user. It only works in conjunction with mpm-itk or mod_ruid2 Apache module. In this case standard PHP module runs scripts. This is the fastest method unlike suPHP and FastCGI commonly used for the same purpose.

See more details at http://forum.parallels.com/showthread.php?t=106297
 
Back
Top