UnS3eN
Basic Pleskian
Getting a weird issue on CentOS 6.9 / Plesk Onyx Version 17.0.17 Update #27.
For some sites php is running as a non-existent system user and as a result we're having issues with folder permissions.
[(15:48:46) root@plesk /var/www/vhosts]# ps aux | grep php
...
mot##### 7823 12.4 2.4 429480 95788 ? SN 15:49 0:03 /opt/plesk/php/5.6/bin/php-cgi -c /var/www/vhosts/system/site1/etc/php.ini
djc##### 7830 11.4 2.0 407632 81200 ? SN 15:49 0:01 /opt/plesk/php/5.6/bin/php-cgi -c /var/www/vhosts/system/site2/etc/php.ini
djc##### 7831 18.1 1.9 404092 75888 ? SN 15:49 0:01 /opt/plesk/php/5.6/bin/php-cgi -c /var/www/vhosts/system/site2/etc/php.ini
10001 <- 7833 17.8 1.6 404236 63376 ? SN 15:49 0:01 /opt/plesk/php/5.6/bin/php-cgi -c /var/www/vhosts/system/site3/etc/php.ini
10013 <- 7834 13.7 1.1 396732 43808 ? SN 15:49 0:00 /opt/plesk/php/5.6/bin/php-cgi -c /var/www/vhosts/system/site4/etc/php.ini
...
The 10001 and 10013 should be the actual site owners like the other two (red), but they are
[(15:52:57) root@plesk /var/www/vhosts]# groups 10001
groups: 10001: No such user
[(15:53:00) root@plesk /var/www/vhosts]# groups 10013
groups: 10013: No such user
/var/www/system/site/etc/conf/httpd.conf look the same for all sites (with reasonable path/user differences)
Is there a way to change the user that runs a particular instance of php?
For some sites php is running as a non-existent system user and as a result we're having issues with folder permissions.
[(15:48:46) root@plesk /var/www/vhosts]# ps aux | grep php
...
mot##### 7823 12.4 2.4 429480 95788 ? SN 15:49 0:03 /opt/plesk/php/5.6/bin/php-cgi -c /var/www/vhosts/system/site1/etc/php.ini
djc##### 7830 11.4 2.0 407632 81200 ? SN 15:49 0:01 /opt/plesk/php/5.6/bin/php-cgi -c /var/www/vhosts/system/site2/etc/php.ini
djc##### 7831 18.1 1.9 404092 75888 ? SN 15:49 0:01 /opt/plesk/php/5.6/bin/php-cgi -c /var/www/vhosts/system/site2/etc/php.ini
10001 <- 7833 17.8 1.6 404236 63376 ? SN 15:49 0:01 /opt/plesk/php/5.6/bin/php-cgi -c /var/www/vhosts/system/site3/etc/php.ini
10013 <- 7834 13.7 1.1 396732 43808 ? SN 15:49 0:00 /opt/plesk/php/5.6/bin/php-cgi -c /var/www/vhosts/system/site4/etc/php.ini
...
The 10001 and 10013 should be the actual site owners like the other two (red), but they are
[(15:52:57) root@plesk /var/www/vhosts]# groups 10001
groups: 10001: No such user
[(15:53:00) root@plesk /var/www/vhosts]# groups 10013
groups: 10013: No such user
/var/www/system/site/etc/conf/httpd.conf look the same for all sites (with reasonable path/user differences)
Is there a way to change the user that runs a particular instance of php?