FreeBSD+nginx+cgi出错的解决

2010-02-01T13:34:00

终于解决FreeBSD下Nginx做前端 FastCGI的PHP出现问题的情况了,原因很囧

过程如下:

    ecjtu# whereis php-cgi
    php-cgi: /usr/local/bin/php-cgi
    ecjtu# spawn-fcgi -a 127.0.0.1 -p 139 -C 64 -f /usr/local/php/bin/php-cgi
    spawn-fcgi: child exited with: 127
    ecjtu# spawn-fcgi -a 127.0.0.1 -p 139 -C 64 -u www -f /usr/local/bin/php-cgi
    spawn-fcgi: child exited with: 13
    ecjtu# spawn-fcgi -a 127.0.0.1 -p 139 -C 64 -U www -f /usr/local/bin/php-cgi
    spawn-fcgi: child spawned successfully: PID: 39766

现在OK了

莫非127错误是php-cgi位置错误 13错误是大写U写成了小写u

当前页面是本站的「Baidu MIP」版。发表评论请点击:完整版 »