Mod_fastcgi.c.1399 Error Spawning Fcgi Failed
Contents |
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn
Make Sure You're Using The Fastcgi-enabled Version
more about Stack Overflow the company Business Learn more about hiring developers or posting the fastcgi-backend failed to start ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site child exited with status 2 /usr/bin/php-cgi for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise
Lighttpd Fastcgi Python
to the top How can I debug what's causing lighttpd errors with fastcgi? up vote 2 down vote favorite I tried enabling mod_fastcgi in my lighttpd server (running on Ubuntu), with the following config (straight from the example in conf-available): fastcgi.server = ( ".php" => (( "bin-path" => "/usr/bin/php-cgi", "socket" => "/tmp/php.socket", "max-procs" => 2, "idle-timeout" => 20, "bin-environment" => ( "PHP_FCGI_CHILDREN" => "4", "PHP_FCGI_MAX_REQUESTS" => "10000" ), "bin-copy-environment"
Mod_fastcgi C 1406 Error Spawning Fcgi Failed
=> ( "PATH", "SHELL", "USER" ), "broken-scriptfilename" => "enable" )) ) ... but now lighttpd fails to start with the following in the logs: 2010-09-06 17:13:39: (log.c.166) server started 2010-09-06 17:13:39: (mod_fastcgi.c.1104) the fastcgi-backend /usr/bin/php-cgi failed to start: 2010-09-06 17:13:39: (mod_fastcgi.c.1108) child exited with status 2 /usr/bin/php-cgi 2010-09-06 17:13:39: (mod_fastcgi.c.1111) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version. If this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2010-09-06 17:13:39: (mod_fastcgi.c.1399) [ERROR]: spawning fcgi failed. 2010-09-06 17:13:39: (server.c.931) Configuration of plugins failed. Going down. How can I tell what's going wrong, and fix it? ubuntu lighttpd fastcgi share|improve this question asked Sep 6 '10 at 17:24 Chris B. 1841214 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted I'll see if I can help, but keep in mind I don't have a lightty setup so I can't compare 1-for-1. I guess you should see how your php-cgi is configured and what it'll support. So... maybe start with something like... $ which php-cgi /usr/bin/php-cgi $ /usr/bin/php-cgi -m [PHP Modules] bcmath bz2 calendar cgi-fcgi ... Then maybe: $ /usr/bin/php-cgi -i > phpcgi.html Then, open phpcgi.html in a browser. I'd su
by monty808 almost 5 years ago I have tried so hard but I cant get fastcgi to work on Ubuntu. Here is my C++ code and below the fastcgi-backend /usr/bin/php-cgi failed to start is the config file with the error. I am NOT using spwan-fcgi. What is wrong? I dont know even know how to begin. The c++ complies and when run prints out the following Content-type: text/html
FastCGI Hello!
Request number 2 running on host (null) server.modules += ( "mod_fastcgi" ) server.document-root = "/var/www/" ## where http://serverfault.com/questions/178532/how-can-i-debug-whats-causing-lighttpd-errors-with-fastcgi to send error-messages to server.errorlog = "/etc/lighttpd/error_logs/error.log" index-file.names += ( "rtb.fcgi" ) ##server.max-worker = 1 #Set worker to two times CPU --- workers equal to two times the number of cores fastcgi.server = ( ".fcgi" => ( "localhost" => ( "socket" => "/tmp/fastcgi.socket", "bin-path" => "/var/www/rtb.fcgi" ) ) ) #includeFastCGI Hello!
" "Request number %d running on host %s\n", ++count, getenv("SERVER_NAME")); return 0; } 2012-01-14 19:34:33: (log.c.166) server started 2012-01-14 19:34:33: (mod_fastcgi.c.1104) the fastcgi-backend /var/www/rtb.fcgi failed to start: 2012-01-14 19:34:33: (mod_fastcgi.c.1108) child exited with status 8 /var/www/rtb.fcgi 2012-01-14 19:34:33: (mod_fastcgi.c.1111) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version. If this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2012-01-14 19:34:33: (mod_fastcgi.c.1399) [ERROR]: spawning fcgi failed. 2012-01-14 19:34:33: (server.c.938) Configuration of plugins failed. Going down. Replies (2) RE: Cant get lighttpd to work with c++ and fastcgi on Ubuntu - Added by stbuehler almost 5 years ago 8 => ENOEXEC error. file permissions, selinux, apparmor, not a binary? RE: Cant get lighttpd to work with c++ and fastchere for a quick overview of the site Help Center Detailed answers to any questions you might http://stackoverflow.com/questions/6717469/starting-lighttpd-with-fastcgi-and-local-unix-domain-socket-failed have Meta Discuss the workings and policies of this site About https://groups.google.com/d/topic/webpy/SIIZ_XBjUEs Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million error spawning programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Starting lighttpd with fastcgi and local unix-domain socket failed up vote 0 down vote favorite /etc/lighttpd.conf: ... server.modules = ( "mod_fastcgi" ) server.username = "_lighttpd" server.groupname = "_lighttpd" fastcgi.server = ( ".fcgi" => (( "socket" => "/tmp/a.out.socket", "bin-path" => error spawning fcgi "/tmp/a.out" )) ) ... I run as root: spawn-fcgi -s /tmp/a.out.socket -n -u _lighttpd -g _lighttpd -U _lighttpd -G _lighttpd -- /tmp/a.out ps aux: ... _lighttpd 28973 0.0 0.2 448 596 p1 I+ 2:33PM 0:00.01 /tmp/a.out ... ls -ltr /tmp -rwxr-xr-x 1 _lighttpd _lighttpd 6992 Jul 16 13:38 a.out srwxr-xr-x 1 _lighttpd _lighttpd 0 Jul 16 14:33 a.out.socket Now I try to start lighttpd as root: /usr/local/sbin/lighttpd -f /etc/lighttpd.conf The logfile contains the following error: 2011-07-16 14:39:23: (log.c.166) server started 2011-07-16 14:39:23: (mod_fastcgi.c.1367) --- fastcgi spawning local proc: /tmp/a.out port: 0 socket /tmp/a.out.socket max-procs: 4 2011-07-16 14:39:23: (mod_fastcgi.c.1391) --- fastcgi spawning port: 0 socket /tmp/a.out.socket current: 0 / 4 2011-07-16 14:39:23: (mod_fastcgi.c.978) bind failed for: unix:/tmp/a.out.socket-0 No such file or directory 2011-07-16 14:39:23: (mod_fastcgi.c.1399) [ERROR]: spawning fcgi failed. 2011-07-16 14:39:23: (server.c.938) Configuration of plugins failed. Going down. What is wrong with my configuration? I run OpenBSD 4.9. Many thanks in advance Toru fastcgi lighttpd openbsd share|improve this question asked Jul 16 '11 at
GoogleВойтиСкрытые поляПоиск групп или сообщений