• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • 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.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Weird permissions on Plesk

ilijamt

Basic Pleskian
Hello,

I didn't notice when but in some update I ran into issues when php is creating files or reading them.

The root directory of the subdomain or httpdocs is <user>: psaserv and the files inside <user>: psacln

Instead of creating with it's user:group it is always created with www-data, and also because of that if the permissions are set to 770 it won't work, but if I change the user to www-data it will.

I have to put 777 permissions for the writing to work on a folder or file

Tried to run PHP as FastCGI and Apache same issue.

What other info would you need to help?

PHP: 5.4.39
Version: Parallels Plesk v12.0.18_build1200140606.15 os_Debian 7.0
OS: Debian 7.8
 
Hi ilijamt,

by default, the system-user "psacln" is not part of the group "www-data" ( CentOS = apache ), or the group "nginx", but when you use php5-fpm, PHP - requests are handled by "domain_system_user:psacln" ( you can verify this, by having a look at your pool - definition for php5-fpm for each domain: for example with Ubuntu/Debian = /etc/php5/fpm/pool.d/ ) . You can solve this issue by adding the group to www-data and nginx:

usermod -a -G psacln www-data
usermod -a -G psacln nginx
 
Last edited by a moderator:
Hello,

$ id www-data
uid=33(www-data) gid=33(www-data) groups=33(www-data),1002(psaserv),1006(psasb)


Yeah adding the psacln group did the trick partly, can someone from Plesk confirm that it should be like that and not a workaround.

But still it creates the file as www-data instead of the <user>: psacln
 
Back
Top