php启动报错及处理

1 错误:
[08-Mar-2020 06:03:24] ERROR: failed to open configuration file ‘/opt/php/etc/php-fpm.conf’: No such file or directory (2)
解决方法:
cd /opt/php/etc
rz

2 错误:
[08-Mar-2020 06:05:08] ERROR: failed to open error_log (/usr/local/php/var/log/php-fpm.log): No such file or directory (2)
解决方法:
mkdir -p /usr/local/php/var/log

3 错误:
[08-Mar-2020 06:05:36] ERROR: Unable to create the PID file (/usr/local/php/var/run/php-fpm.pid).: No such file or directory (2)
解决方法:
mkdir -p /usr/local/php/var/run

4 [07-Mar-2020 08:18:08] ERROR: [pool www] cannot get uid for user ‘nginx’
解决方法:
1 vi php-fpm.conf 把user=…及group=…改成user=nginx和group=nginx
2 useradd -s /bin/nologin -M nginx

你可能感兴趣的:(php)