• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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