File System Access Rights on PLESK Controlled Servers

Under PLESK the file and directory owners are the domain owner's user name (owner) and psacln (group). FTP'd files get the same owner/group with rw-r--r--. There is no write right for the PHP scripts, which run as 'www-data'.


Options are to change the group to 'www-data', or allow write access for all (mode 777). The latter is often recommended. I doubt that this is the best solution, but did it for the moment as quick solution.

The above is only true if PHP runs as apache module, PLESK setting for PHP support is 'Apache module'.
If PHP runs under fast CGI, PHP is executed under the domain owner's user name. E.g. the PHP scripts have the same access rights as the owner.

No file access right changes necessary with FastCGI! PHP support should be set to 'FastCGI application'.

You have no rights to post comments

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.