Why my server (nginx+php(fastcgi) )can't execute cgi?

zhxd nginx-forum at nginx.us
Sun Aug 15 20:14:58 MSD 2010


I insert php-fpm into system service.and I can use service command
control php-fpm service.
there has php-cgi processes in my system:

[code]# ps aux | grep cgi
www       3126  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf
www       3127  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf
www       3128  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf
www       3129  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf
www       3130  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf
www       3131  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf
www       3132  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf
www       3133  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf
www       3134  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf
www       3135  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf
www       3136  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf
www       3137  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf
www       3138  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf
www       3139  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf
www       3140  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf
www       3141  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf
www       3142  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf
www       3143  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf
www       3144  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf
www       3145  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf
www       3146  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf
www       3147  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf
www       3148  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf
www       3149  0.0  0.1  92620  2868 ?        S    23:53   0:00
/usr/local/php/bin/php-cgi --fpm --fpm-config
/usr/local/php/etc/php-fpm.conf[/code]


There has php-fpm and spawn-fcgi can managment cgi.
http://www.softwareprojects.com/resources/programming/t-how-to-install-php-fpm-spawn-fcgi-replacement-1602.html

Why my cgi can't execute?:(

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,119929,120059#msg-120059




More information about the nginx mailing list