• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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