After completion of the installation manual php7.2.8, performed php-fpm,
/etc/init.d
/php-fpm
start
prompt:
Starting php-fpm [30-Jul-2018 11:10:21] ERROR: [pool www] cannot get uid for user 'php-fpm'
[30-Jul-2018 11:10:21] ERROR: FPM initialization failed
Baidu find a lot of answers are directly say change php-fpm.conf file, then add the user group field pid below
https://blog.csdn.net/loveaborn/article/details/20296411
But this modified directly after execution error:
[30-Jul-2018 11:29:18] ERROR: [/usr/local/php/etc/php-fpm.conf:18] unknown entry 'user'
[30-Jul-2018 11:29:18] ERROR: failed to load configuration file '/usr/local/php/etc/php-fpm.conf'
This is because just pid user group field to add the following in php-fpm.conf file in the following global globally and the user group is not executed.
Continue with the view php-fpm.conf file,
Found sentence: include = / usr / local / php / etc / php-fpm.d / * conf.
It is found to be quoted in all profiles php-fpm.d directory under the file php-fpm.conf same directory, with cd php-fpm.d into the folder, and discovered that only www.conf this profile is in line with * .conf loaded, so a direct vim sudo www.conf into the View
It can be found:
user = php-fpm
group = php-fpm
Just start being given original sin,
Then change
method one:
Php-fpm will replace the existing users and user groups
Method Two:
Php-fpm add users and user groups
Modification, re-run, the problem is solved