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

Hi,all!
I sourcecode compile nginx php(with php-fpm)on CentOS.
It can execute PHP,now.
I ceate a website by cgi,but it can’t execute CGI.
When I visit the cgi url,it show the cgi file download window.
There show my php-fpm.log:

Aug 14 20:50:58.231470 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.231533 [WARNING] fpm_children_bury(), line 215: child 4041 (pool default) exited on signal 15 SIGTERM after 6811.048578 seconds from start Aug 14 20:50:58.236585 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.236975 [WARNING] fpm_children_bury(), line 215: child 4042 (pool default) exited on signal 15 SIGTERM after 6811.021408 seconds from start Aug 14 20:50:58.242020 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.242427 [WARNING] fpm_children_bury(), line 215: child 4043 (pool default) exited on signal 15 SIGTERM after 6811.004821 seconds from start Aug 14 20:50:58.247466 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.247552 [WARNING] fpm_children_bury(), line 215: child 4044 (pool default) exited on signal 15 SIGTERM after 6810.996587 seconds from start Aug 14 20:50:58.252941 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.253003 [WARNING] fpm_children_bury(), line 215: child 4045 (pool default) exited on signal 15 SIGTERM after 6810.970941 seconds from start Aug 14 20:50:58.258071 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.258477 [WARNING] fpm_children_bury(), line 215: child 4046 (pool default) exited on signal 15 SIGTERM after 6810.953876 seconds from start Aug 14 20:50:58.263446 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.263513 [WARNING] fpm_children_bury(), line 215: child 4047 (pool default) exited on signal 15 SIGTERM after 6810.945557 seconds from start Aug 14 20:50:58.268528 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.268923 [WARNING] fpm_children_bury(), line 215: child 4048 (pool default) exited on signal 15 SIGTERM after 6810.920346 seconds from start Aug 14 20:50:58.274001 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.274433 [WARNING] fpm_children_bury(), line 215: child 4049 (pool default) exited on signal 15 SIGTERM after 6810.903482 seconds from start Aug 14 20:50:58.279511 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.279903 [WARNING] fpm_children_bury(), line 215: child 4050 (pool default) exited on signal 15 SIGTERM after 6810.895946 seconds from start Aug 14 20:50:58.284991 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.285389 [WARNING] fpm_children_bury(), line 215: child 4051 (pool default) exited on signal 15 SIGTERM after 6810.869813 seconds from start Aug 14 20:50:58.290434 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.290498 [WARNING] fpm_children_bury(), line 215: child 4052 (pool default) exited on signal 15 SIGTERM after 6810.852553 seconds from start Aug 14 20:50:58.295955 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.296026 [WARNING] fpm_children_bury(), line 215: child 4053 (pool default) exited on signal 15 SIGTERM after 6810.845046 seconds from start Aug 14 20:50:58.301493 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.301877 [WARNING] fpm_children_bury(), line 215: child 4054 (pool default) exited on signal 15 SIGTERM after 6810.817901 seconds from start Aug 14 20:50:58.313994 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.314170 [WARNING] fpm_children_bury(), line 215: child 4056 (pool default) exited on signal 15 SIGTERM after 6810.793200 seconds from start Aug 14 20:50:58.319513 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.319890 [WARNING] fpm_children_bury(), line 215: child 4057 (pool default) exited on signal 15 SIGTERM after 6810.766385 seconds from start Aug 14 20:50:58.329571 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.329954 [WARNING] fpm_children_bury(), line 215: child 4059 (pool default) exited on signal 15 SIGTERM after 6810.739998 seconds from start Aug 14 20:50:58.334984 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.335421 [WARNING] fpm_children_bury(), line 215: child 4060 (pool default) exited on signal 15 SIGTERM after 6810.711868 seconds from start Aug 14 20:50:58.340497 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.340871 [WARNING] fpm_children_bury(), line 215: child 4061 (pool default) exited on signal 15 SIGTERM after 6810.694848 seconds from start Aug 14 20:50:58.345939 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.346032 [WARNING] fpm_children_bury(), line 215: child 4062 (pool default) exited on signal 15 SIGTERM after 6810.685072 seconds from start Aug 14 20:50:58.351427 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.351487 [WARNING] fpm_children_bury(), line 215: child 4063 (pool default) exited on signal 15 SIGTERM after 6810.657901 seconds from start Aug 14 20:50:58.361514 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.361882 [WARNING] fpm_children_bury(), line 215: child 4065 (pool default) exited on signal 15 SIGTERM after 6810.631923 seconds from start Aug 14 20:50:58.366981 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.367400 [WARNING] fpm_children_bury(), line 215: child 4066 (pool default) exited on signal 15 SIGTERM after 6810.605448 seconds from start Aug 14 20:50:58.372491 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.372864 [WARNING] fpm_children_bury(), line 215: child 4067 (pool default) exited on signal 15 SIGTERM after 6810.588311 seconds from start Aug 14 20:50:58.400932 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.401007 [WARNING] fpm_children_bury(), line 215: child 4055 (pool default) exited on signal 15 SIGTERM after 6810.894023 seconds from start Aug 14 20:50:58.401411 [WARNING] fpm_children_bury(), line 215: child 4058 (pool default) exited on signal 15 SIGTERM after 6810.824849 seconds from start Aug 14 20:50:58.401574 [NOTICE] fpm_got_signal(), line 48: received SIGCHLD Aug 14 20:50:58.401924 [WARNING] fpm_children_bury(), line 215: child 4064 (pool default) exited on signal 15 SIGTERM after 6810.685460 seconds from start Aug 14 20:50:58.401959 [NOTICE] fpm_pctl_exit(), line 81: exiting, bye-bye! Aug 14 20:53:54.805437 [NOTICE] fpm_unix_init_main(), line 284: getrlimit(nofile): max:1024, cur:1024 Aug 14 20:53:54.824486 [NOTICE] fpm_event_init_main(), line 88: libevent: using epoll Aug 14 20:53:54.824926 [NOTICE] fpm_init(), line 52: fpm is running, pid 1844 Aug 14 20:53:54.846464 [NOTICE] fpm_children_make(), line 352: child 1845 (pool default) started Aug 14 20:53:54.856511 [NOTICE] fpm_children_make(), line 352: child 1846 (pool default) started Aug 14 20:53:54.896867 [NOTICE] fpm_children_make(), line 352: child 1847 (pool default) started Aug 14 20:53:54.937848 [NOTICE] fpm_children_make(), line 352: child 1848 (pool default) started Aug 14 20:53:54.951860 [NOTICE] fpm_children_make(), line 352: child 1849 (pool default) started Aug 14 20:53:55.159396 [NOTICE] fpm_children_make(), line 352: child 1850 (pool default) started Aug 14 20:53:55.180758 [NOTICE] fpm_children_make(), line 352: child 1857 (pool default) started Aug 14 20:53:55.193804 [NOTICE] fpm_children_make(), line 352: child 1858 (pool default) started Aug 14 20:53:55.287399 [NOTICE] fpm_children_make(), line 352: child 1859 (pool default) started Aug 14 20:53:55.310633 [NOTICE] fpm_children_make(), line 352: child 1863 (pool default) started Aug 14 20:53:55.323769 [NOTICE] fpm_children_make(), line 352: child 1864 (pool default) started Aug 14 20:53:55.383590 [NOTICE] fpm_children_make(), line 352: child 1865 (pool default) started Aug 14 20:53:55.405804 [NOTICE] fpm_children_make(), line 352: child 1866 (pool default) started Aug 14 20:53:55.419781 [NOTICE] fpm_children_make(), line 352: child 1867 (pool default) started Aug 14 20:53:55.486395 [NOTICE] fpm_children_make(), line 352: child 1868 (pool default) started Aug 14 20:53:55.508683 [NOTICE] fpm_children_make(), line 352: child 1869 (pool default) started Aug 14 20:53:55.521768 [NOTICE] fpm_children_make(), line 352: child 1870 (pool default) started Aug 14 20:53:55.634324 [NOTICE] fpm_children_make(), line 352: child 1871 (pool default) started Aug 14 20:53:55.657323 [NOTICE] fpm_children_make(), line 352: child 1874 (pool default) started Aug 14 20:53:55.726678 [NOTICE] fpm_children_make(), line 352: child 1877 (pool default) started Aug 14 20:53:55.798627 [NOTICE] fpm_children_make(), line 352: child 1878 (pool default) started Aug 14 20:53:55.821475 [NOTICE] fpm_children_make(), line 352: child 1880 (pool default) started Aug 14 20:53:55.878663 [NOTICE] fpm_children_make(), line 352: child 1881 (pool default) started Aug 14 20:53:55.975672 [NOTICE] fpm_children_make(), line 352: child 1884 (pool default) started Aug 14 20:53:55.983147 [NOTICE] fpm_children_make(), line 352: child 1890 (pool default) started Aug 14 20:53:55.990661 [NOTICE] fpm_children_make(), line 352: child 1891 (pool default) started Aug 14 20:53:55.996627 [NOTICE] fpm_children_make(), line 352: child 1892 (pool default) started Aug 14 20:53:56.044592 [NOTICE] fpm_children_make(), line 352: child 1893 (pool default) started Aug 14 20:53:56.053004 [NOTICE] fpm_children_make(), line 352: child 1896 (pool default) started Aug 14 20:53:56.062390 [NOTICE] fpm_children_make(), line 352: child 1897 (pool default) started Aug 14 20:53:56.071221 [NOTICE] fpm_children_make(), line 352: child 1898 (pool default) started Aug 14 20:53:56.076683 [NOTICE] fpm_children_make(), line 352: child 1899 (pool default) started Aug 14 20:53:56.106411 [NOTICE] fpm_children_make(), line 352: child 1900 (pool default) started Aug 14 20:53:56.115398 [NOTICE] fpm_children_make(), line 352: child 1902 (pool default) started Aug 14 20:53:56.124354 [NOTICE] fpm_children_make(), line 352: child 1903 (pool default) started Aug 14 20:53:56.130616 [NOTICE] fpm_children_make(), line 352: child 1904 (pool default) started Aug 14 20:53:56.177027 [NOTICE] fpm_children_make(), line 352: child 1905 (pool default) started Aug 14 20:53:56.184589 [NOTICE] fpm_children_make(), line 352: child 1910 (pool default) started Aug 14 20:53:56.192134 [NOTICE] fpm_children_make(), line 352: child 1911 (pool default) started Aug 14 20:53:56.198561 [NOTICE] fpm_children_make(), line 352: child 1912 (pool default) started Aug 14 20:53:56.216658 [NOTICE] fpm_children_make(), line 352: child 1913 (pool default) started Aug 14 20:53:56.278722 [NOTICE] fpm_children_make(), line 352: child 1915 (pool default) started Aug 14 20:53:56.286364 [NOTICE] fpm_children_make(), line 352: child 1924 (pool default) started Aug 14 20:53:56.293947 [NOTICE] fpm_children_make(), line 352: child 1925 (pool default) started Aug 14 20:53:56.299555 [NOTICE] fpm_children_make(), line 352: child 1926 (pool default) started Aug 14 20:53:56.332588 [NOTICE] fpm_children_make(), line 352: child 1927 (pool default) started Aug 14 20:53:56.340158 [NOTICE] fpm_children_make(), line 352: child 1928 (pool default) started Aug 14 20:53:56.347790 [NOTICE] fpm_children_make(), line 352: child 1929 (pool default) started Aug 14 20:53:56.355421 [NOTICE] fpm_children_make(), line 352: child 1930 (pool default) started Aug 14 20:53:56.360559 [NOTICE] fpm_children_make(), line 352: child 1931 (pool default) started Aug 14 20:53:56.383614 [NOTICE] fpm_children_make(), line 352: child 1932 (pool default) started Aug 14 20:53:56.391684 [NOTICE] fpm_children_make(), line 352: child 1933 (pool default) started Aug 14 20:53:56.399469 [NOTICE] fpm_children_make(), line 352: child 1934 (pool default) started Aug 14 20:53:56.411663 [NOTICE] fpm_children_make(), line 352: child 1935 (pool default) started Aug 14 20:53:56.418538 [NOTICE] fpm_children_make(), line 352: child 1937 (pool default) started Aug 14 20:53:56.443591 [NOTICE] fpm_children_make(), line 352: child 1938 (pool default) started Aug 14 20:53:56.451356 [NOTICE] fpm_children_make(), line 352: child 1939 (pool default) started Aug 14 20:53:56.459132 [NOTICE] fpm_children_make(), line 352: child 1940 (pool default) started Aug 14 20:53:56.466558 [NOTICE] fpm_children_make(), line 352: child 1941 (pool default) started Aug 14 20:53:56.484201 [NOTICE] fpm_children_make(), line 352: child 1942 (pool default) started Aug 14 20:53:56.492185 [NOTICE] fpm_children_make(), line 352: child 1943 (pool default) started Aug 14 20:53:56.500962 [NOTICE] fpm_children_make(), line 352: child 1944 (pool default) started Aug 14 20:53:56.508498 [NOTICE] fpm_children_make(), line 352: child 1945 (pool default) started Aug 14 20:53:56.514821 [NOTICE] fpm_children_make(), line 352: child 1946 (pool default) started Aug 14 20:53:56.524405 [NOTICE] fpm_children_make(), line 352: child 1947 (pool default) started Aug 14 20:53:56.534522 [NOTICE] fpm_children_make(), line 352: child 1948 (pool default) started Aug 14 20:53:56.542870 [NOTICE] fpm_children_make(), line 352: child 1949 (pool default) started Aug 14 20:53:56.549475 [NOTICE] fpm_children_make(), line 352: child 1950 (pool default) started Aug 14 20:53:56.565548 [NOTICE] fpm_children_make(), line 352: child 1951 (pool default) started Aug 14 20:53:56.574100 [NOTICE] fpm_children_make(), line 352: child 1953 (pool default) started Aug 14 20:53:56.587712 [NOTICE] fpm_children_make(), line 352: child 1954 (pool default) started Aug 14 20:53:56.595888 [NOTICE] fpm_children_make(), line 352: child 1955 (pool default) started Aug 14 20:53:56.601483 [NOTICE] fpm_children_make(), line 352: child 1956 (pool default) started Aug 14 20:53:56.621422 [NOTICE] fpm_children_make(), line 352: child 1957 (pool default) started Aug 14 20:53:56.632431 [NOTICE] fpm_children_make(), line 352: child 1958 (pool default) started Aug 14 20:53:56.639799 [NOTICE] fpm_children_make(), line 352: child 1959 (pool default) started Aug 14 20:53:56.648440 [NOTICE] fpm_children_make(), line 352: child 1960 (pool default) started Aug 14 20:53:56.654591 [NOTICE] fpm_children_make(), line 352: child 1961 (pool default) started Aug 14 20:53:56.668833 [NOTICE] fpm_children_make(), line 352: child 1962 (pool default) started Aug 14 20:53:56.677371 [NOTICE] fpm_children_make(), line 352: child 1964 (pool default) started Aug 14 20:53:56.686728 [NOTICE] fpm_children_make(), line 352: child 1965 (pool default) started Aug 14 20:53:56.692534 [NOTICE] fpm_children_make(), line 352: child 1966 (pool default) started Aug 14 20:53:56.710769 [NOTICE] fpm_children_make(), line 352: child 1967 (pool default) started Aug 14 20:53:56.719714 [NOTICE] fpm_children_make(), line 352: child 1968 (pool default) started Aug 14 20:53:56.728740 [NOTICE] fpm_children_make(), line 352: child 1969 (pool default) started Aug 14 20:53:56.735473 [NOTICE] fpm_children_make(), line 352: child 1970 (pool default) started Aug 14 20:53:56.752058 [NOTICE] fpm_children_make(), line 352: child 1971 (pool default) started Aug 14 20:53:56.760363 [NOTICE] fpm_children_make(), line 352: child 1972 (pool default) started Aug 14 20:53:56.768166 [NOTICE] fpm_children_make(), line 352: child 1973 (pool default) started Aug 14 20:53:56.775546 [NOTICE] fpm_children_make(), line 352: child 1974 (pool default) started Aug 14 20:53:56.790713 [NOTICE] fpm_children_make(), line 352: child 1975 (pool default) started Aug 14 20:53:56.798927 [NOTICE] fpm_children_make(), line 352: child 1976 (pool default) started Aug 14 20:53:56.811664 [NOTICE] fpm_children_make(), line 352: child 1977 (pool default) started Aug 14 20:53:56.817508 [NOTICE] fpm_children_make(), line 352: child 1979 (pool default) started Aug 14 20:53:56.835166 [NOTICE] fpm_children_make(), line 352: child 1980 (pool default) started Aug 14 20:53:56.844367 [NOTICE] fpm_children_make(), line 352: child 1982 (pool default) started Aug 14 20:53:56.853944 [NOTICE] fpm_children_make(), line 352: child 1983 (pool default) started Aug 14 20:53:56.859528 [NOTICE] fpm_children_make(), line 352: child 1984 (pool default) started Aug 14 20:53:56.875124 [NOTICE] fpm_children_make(), line 352: child 1985 (pool default) started Aug 14 20:53:56.882933 [NOTICE] fpm_children_make(), line 352: child 1986 (pool default) started Aug 14 20:53:56.891203 [NOTICE] fpm_children_make(), line 352: child 1987 (pool default) started Aug 14 20:53:56.897809 [NOTICE] fpm_children_make(), line 352: child 1988 (pool default) started Aug 14 20:53:56.912230 [NOTICE] fpm_children_make(), line 352: child 1989 (pool default) started Aug 14 20:53:56.919609 [NOTICE] fpm_children_make(), line 352: child 1990 (pool default) started Aug 14 20:53:56.928690 [NOTICE] fpm_children_make(), line 352: child 1991 (pool default) started Aug 14 20:53:56.935463 [NOTICE] fpm_children_make(), line 352: child 1992 (pool default) started Aug 14 20:53:56.958818 [NOTICE] fpm_children_make(), line 352: child 1993 (pool default) started Aug 14 20:53:56.967981 [NOTICE] fpm_children_make(), line 352: child 1996 (pool default) started Aug 14 20:53:56.976614 [NOTICE] fpm_children_make(), line 352: child 1997 (pool default) started Aug 14 20:53:56.983474 [NOTICE] fpm_children_make(), line 352: child 1998 (pool default) started Aug 14 20:53:56.994980 [NOTICE] fpm_children_make(), line 352: child 1999 (pool default) started Aug 14 20:53:57.004014 [NOTICE] fpm_children_make(), line 352: child 2000 (pool default) started Aug 14 20:53:57.182876 [NOTICE] fpm_event_loop(), line 107: libevent: entering main loop

Wait for your help…

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

Hi,

this is the nginx mailing list, not PHP-FPM. Please use
http://groups.google.com/group/highload-php-en instead.

++ Jerome

2010/8/15 zhxd [email protected]:

On 15.08.2010 05:34, zhxd wrote:

Hi,all!
I sourcecode compile nginx php(with php-fpm)on CentOS.
It can execute PHP,now.
I ceate a website by cgi,but it can’t execute CGI.

Can you tell me what have php with your cgi to do? Cgi is cgi, use
fcgiwrap, thttpd or spawn-fcgi for it. php-fpm is for php only.

– Piotr.

Thanks for Piotr’s reply!
I sourcecode compile nginx with ‘–enable-fastcgi’ ‘–enable-fpm’
‘–enable-force-cgi-redirect’,before I do it,I patch the php-fpm for
php,and I want to use FastCGI to execute CGI with nginx.
Your mean my nginx can’t execute CGI,that isn’t my config havn’t error?
Then,what I need to do?

Thank you!

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

Well, I think I have found the idea of the.
Piotr,please do not reply to me first. :slight_smile:
Let me think about themselves first.
I think I can solve it.:slight_smile:

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

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:

# 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

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?:frowning:

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

I sourcecode compile install FCGI-0.67,and install nagios.
I think the CGI can execute,now.
But I found that,when I visit cgi url,Web browser tell that:502 Bad
Gateway
I found error in nginx error.log:

2010/08/16 14:07:51 [error] 1720#0: *3 connect() to
unix:/usr/local/nginx/logs/nginx-fcgi.sock failed (111: Connection
refus
ed) while connecting to upstream, client: 219.139.240.250, server:
nagios.whidc.net, request: "GET /test.cgi HTTP/1.1", upstream:
"fastcgi://unix:/usr/local/nginx/logs/nginx-fcgi.sock:", host:
"nagios.abcd.net"
2010/08/16 14:08:12 [error] 1720#0: *3 connect() to
unix:/usr/local/nginx/logs/nginx-fcgi.sock failed (111: Connection
refus
ed) while connecting to upstream, client: 219.139.240.250, server:
nagios.whidc.net, request: "GET /test.cgi HTTP/1.1", upstream:
"fastcgi://unix:/usr/local/nginx/logs/nginx-fcgi.sock:", host:
"nagios.abcd.net"
2010/08/16 14:08:43 [error] 1720#0: *3 connect() to
unix:/usr/local/nginx/logs/nginx-fcgi.sock failed (111: Connection
refus
ed) while connecting to upstream, client: 219.139.240.250, server:
nagios.whidc.net, request: "GET /test.cgi HTTP/1.1", upstream:
"fastcgi://unix:/usr/local/nginx/logs/nginx-fcgi.sock:", host:
"nagios.abcd.net"
2010/08/16 14:08:51 [error] 1720#0: *3 connect() to
unix:/usr/local/nginx/logs/nginx-fcgi.sock failed (111: Connection
refus
ed) while connecting to upstream, client: 219.139.240.250, server:
nagios.whidc.net, request: "GET /test.cgi HTTP/1.1", upstream:
"fastcgi://unix:/usr/local/nginx/logs/nginx-fcgi.sock:", host:
"nagios.abcd.net"
2010/08/16 14:09:11 [error] 1720#0: *3 connect() to
unix:/usr/local/nginx/logs/nginx-fcgi.sock failed (111: Connection
refus
ed) while connecting to upstream, client: 219.139.240.250, server:
nagios.whidc.net, request: "GET /test.cgi HTTP/1.1", upstream:
"fastcgi://unix:/usr/local/nginx/logs/nginx-fcgi.sock:", host:
"nagios.abcd.net"

where has the mistake?:frowning:

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

On 16.08.2010 09:40, zhxd wrote:

Resolved.:slight_smile:

For the record, msg with the solution.

– Piotr.

Resolved.:slight_smile:

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs