If PHP is newly installed and an error is reported,
The following information:
12月 04 14:56:00 localhost.localdomain php-fpm[54862]: [04-Dec-2021 14:56:00] ERROR: [pool www] cannot get uid for user 'localhost.localdomain' 12月 04 14:56:00 localhost.localdomain php-fpm[54862]: [04-Dec-2021 14:56:00] ERROR: FPM initialization failed
This is because there is a problem with our PHP default parameter settings
It needs to be modified in this script
sudo vi /etc/opt/remi/php72/php-fpm.d/www.conf We need to find out our username in cat /etc/passwd cat /etc/group to see the user group we are interested in. Just change this parameter again.
Finally, restart PHP
sudo systemctl restart php72-php-fpm.service
Similar Posts:
- [Solved] Libvirt startup error: failed to start virtualization daemon
- [Solved] usermod: cannot lock /etc/passwd; try again later
- Job for mysqld.service failed because the control process exited with error code
- [Solved] Docker Starup Error: Failed to start Docker Application Container Engine.
- userdel:user* is currently used by process id
- [Solved] Forbid root, handle error sudo must be owned by uid 0
- CentOS7 Failed to start LSB: Bring up/down networking. [How to Solve]
- Tomcat Command Error: Catalina.stop: connect reused solution
- [Solved] MySQL Connect Error: Can’t connect to MySQL server on ‘ ‘(61)
- Docker Cannot Start: Failed to start Docker Application Container Engine