web3dprint
New Pleskian
I would like to switch from FastCGI application to PHP-FPM, but if I do so from the PHP settings of a domain that I manage under Plesk 12.5, the user that is executing the application is www-data, this causes problems of permissions with the FTP user files, which is the user that the FastCGI setting makes PHP run from.
I can verify this in my PrestaShop application, since the .htaccess file cannot be overwritten by PHP running PHP-FPM, if I manually delete it, I can see that it is generated under that user name and group.
$ ls -la
drwxr-x--- 26 domainuser psaserv 4.0K Jul 23 00:30 .
[...]
-rw-r--r-- 1 domainuser psacln 21K Jul 23 18:47 .htaccess
[...]
$ rm .htaccess
(change settings in Plesk, run app, regenerate .htaccess)
-rw-r--r-- 1 www-data www-data 4.1K Jul 23 19:04 .htaccess
So I could I change this? Thank you in advance.
I can verify this in my PrestaShop application, since the .htaccess file cannot be overwritten by PHP running PHP-FPM, if I manually delete it, I can see that it is generated under that user name and group.
$ ls -la
drwxr-x--- 26 domainuser psaserv 4.0K Jul 23 00:30 .
[...]
-rw-r--r-- 1 domainuser psacln 21K Jul 23 18:47 .htaccess
[...]
$ rm .htaccess
(change settings in Plesk, run app, regenerate .htaccess)
-rw-r--r-- 1 www-data www-data 4.1K Jul 23 19:04 .htaccess
So I could I change this? Thank you in advance.