“Fixing” PHP ownership issues on Plesk Dedicated Servers
Sometimes a PHP script will create directories with ownership of “apache:apache”. This would be great, except that sometimes this renders those folders unusable; no deleting, no uploading into, no removing with FTP or with Plesk’s file manager. Lame.
Simple solution though: Chown the necessary files every minute (or as needed).
First go to Plesk’s “Scheduled Tasks”. Pick an appropriate user (like root), and add a scheduled task (which is just an easier way to add a cron job.
Use a command something like this:
chown -R therightuser:therightgroup /home/httpd/vhosts/yourdomain.com/httpdocs/path/to/stuff/
The -R is “recursive”, and will change the ownership of all files inside the directory you specify. If you’re unsure about what user or group to set things to, navigate to the correct directory on your server (in the terminal) and type ls -l. This will show you what things should be. Then use those values.
Network Status







