current position:Home>Perfectly solve the error reported by PHP when Linux starts: error: [pool www] cannot get uid for user'nginx'

Perfectly solve the error reported by PHP when Linux starts: error: [pool www] cannot get uid for user'nginx'

2022-06-24 09:57:19BigChen_ up

Preface : When I was there linux Installed on php in the future , Start with a sense of urgency php When , And reported this mistake to me :

[[email protected] php]# ./sbin/php-fpm 
[18-Jan-2020 21:29:10] ERROR: [pool www] cannot get uid for user 'nginx'
[18-Jan-2020 21:29:10] ERROR: FPM initialization failed

I found little information about this error report on the Internet , So I groped and finally solved it .

The specific solutions are as follows : Find our www.conf The configuration file , modify user=nginx group=nginx The user name of the current system OK 了 , See the following code for specific operation :

[[email protected] ~]# cd /usr/local/php/etc/php-fpm.d
[[email protected]alhost php-fpm.d]# ls
www.conf  www.conf.default
[[email protected] php-fpm.d]# vi www.conf

 Insert picture description here It's settled here . If you still have any problems, you can comment below , Bloggers will answer your questions as soon as they see it .

copyright notice
author[BigChen_ up],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/175/202206240807401033.html

Random recommended