• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Problems with users and permissions

O

Oscar@

Guest
I have installed PLESK 8.0 for Ubuntu Linux recently (Breezy Badger), now everything is working fine except for one thing:
When a PHP script creates a file the owner is set to www-data and the permissions are something like -rwxr--r--.
But the user shall be the SSH/FTP user for that virtual host (domain_com for example) and the chmod drwx------.
I have tried just about everything, nothing works :( And the SSH/FTP user shall be able to read/write to the file without
using a PHP script, i have to use sudo and read from the file or chmod it so the group can read/write to it so anyone
that has acsess to FTP/SSH/PHP read/write to that file too, that's bad.

So, what i want is that when a PHP script creates a file the user shall be set for the FTP/SSH user for that virtual host and chmod drwx------.
 
Try to install and use mod_suphp from suphp.org.

All files created with php will have owner/group as SSH/FTP
 
I found a very easy way to install it on Debian without compiling the sourcecode or anything:
Code:
sudo apt-get install libapache2-mod-suphp
Hops this will help someone:)
 
Back
Top