• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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