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 成功了!