CentOS 6.2配置php-cgi错误解决办法:
[root@host1 php-5.2.10]# /usr/local/php-5.2.10/sbin/php-fpm start
Starting php_fpm Apr 10 02:59:31.509496 [ERROR] fpm_unix_conf_wp(), line 124: please specify user and group other than root, pool ‘default’
…………………………….. failed
解决办法;
只需要修改php-fpm.conf
Unix user of processes
nobody –>
Unix group of processes
nobody –>
将去掉即可。至于user/group根据实际情况修改(www)。
重新启动 /usr/local/webserver/php-fpm/sbin/php-fpm start 成功了!