• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/
  • On Plesk for Linux mod_status is disabled on upgrades to improve Apache security.
    This is a one-time operation that occurs during an upgrade. You can manually enable mod_status later if needed.

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