Re: Fastcgi not working?
Frank de Bot <ppi-hi+UNC/[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Chad wrote: > About 3 weeks ago I installed FastCGI on my server. I have yet to run an > fcgi script sucessfully. So I pulled together a test.fcgi file I could > call directly which consists of the following code: > > #!/usr/local/bin/ruby > require 'fcgi' > > FCGI.each do |request| > request.out.print "Content-type: text/plain\r\n\r\n" > request.out.print "This is a test." > request.finish > end > > > It stalls for 30 seconds and then coughs up an "Error 500". > > This is the apache error_log resulting form a clean httpd restart > immediately followed by calling the above url (the test.fgi page) > > [Wed Mar 30 14:28:45 2005] [warn] NameVirtualHost xx.x1.35.139:80 has no > VirtualHosts > [Wed Mar 30 14:28:45 2005] [notice] FastCGI: process manager initialized > (pid 1441) > [Wed Mar 30 14:28:46 2005] [notice] Apache configured -- resuming normal > operations > [Wed Mar 30 14:28:46 2005] [notice] suEXEC mechanism enabled (wrapper: > /usr/local/apache/bin/suexec) > [Wed Mar 30 14:28:46 2005] [notice] Accept mutex: sysvsem (Default: sysvsem) > FastCGI: can't start server "/home/temple/public_html/test.fcgi" (pid > 1457), execle() failed: No such file or directory > [Wed Mar 30 14:29:01 2005] [warn] FastCGI: (dynamic) server > "/home/temple/public_html/test.fcgi" started (pid 1457) > [Wed Mar 30 14:29:01 2005] [warn] FastCGI: (dynamic) server > "/home/temple/public_html/test.fcgi" (pid 1457) terminated by calling > exit with status '255' > FastCGI: can't start server "/home/temple/public_html/test.fcgi" (pid > 1459), execle() failed: No such file or directory > [Wed Mar 30 14:29:06 2005] [warn] FastCGI: (dynamic) server > "/home/temple/public_html/test.fcgi" restarted (pid 1459) > [Wed Mar 30 14:29:06 2005] [warn] FastCGI: (dynamic) server > "/home/temple/public_html/test.fcgi" (pid 1459) terminated by calling > exit with status '255' > FastCGI: can't start server "/home/temple/public_html/test.fcgi" (pid > 1460), execle() failed: No such file or directory > [Wed Mar 30 14:29:11 2005] [warn] FastCGI: (dynamic) server > "/home/temple/public_html/test.fcgi" restarted (pid 1460) > [Wed Mar 30 14:29:11 2005] [warn] FastCGI: (dynamic) server > "/home/temple/public_html/test.fcgi" (pid 1460) terminated by calling > exit with status '255' > FastCGI: can't start server "/home/temple/public_html/test.fcgi" (pid > 1461), execle() failed: No such file or directory > [Wed Mar 30 14:29:16 2005] [warn] FastCGI: (dynamic) server > "/home/temple/public_html/test.fcgi" restarted (pid 1461) > [Wed Mar 30 14:29:16 2005] [warn] FastCGI: (dynamic) server > "/home/temple/public_html/test.fcgi" (pid 1461) terminated by calling > exit with status '255' > [Wed Mar 30 14:29:16 2005] [warn] FastCGI: (dynamic) server > "/home/temple/public_html/test.fcgi" has failed to remain running for 30 > seconds given 3 attempts, its restart interval has been backed off to > 600 seconds > [Wed Mar 30 14:29:16 2005] [warn] FastCGI: (dynamic) server > "/home/temple/public_html/test.fcgi" has failed to remain running for 30 > seconds given 3 attempts, its restart interval has been backed off to > 600 seconds > [Wed Mar 30 14:29:19 2005] [warn] FastCGI: (dynamic) server > "/home/temple/public_html/test.fcgi" has failed to remain running for 30 > seconds given 3 attempts, its restart interval has been backed off to > 600 seconds > [Wed Mar 30 14:29:22 2005] [warn] FastCGI: (dynamic) server > "/home/temple/public_html/test.fcgi" has failed to remain running for 30 > seconds given 3 attempts, its restart interval has been backed off to > 600 seconds > [Wed Mar 30 14:29:25 2005] [warn] FastCGI: (dynamic) server > "/home/temple/public_html/test.fcgi" has failed to remain running for 30 > seconds given 3 attempts, its restart interval has been backed off to > 600 seconds > [Wed Mar 30 14:29:28 2005] [warn] FastCGI: (dynamic) server > "/home/temple/public_html/test.fcgi" has failed to remain running for 30 > seconds given 3 attempts, its restart interval has been backed off to > 600 seconds > [Wed Mar 30 14:29:31 2005] [warn] FastCGI: (dynamic) server > "/home/temple/public_html/test.fcgi" has failed to remain running for 30 > seconds given 3 attempts, its restart interval has been backed off to > 600 seconds > [Wed Mar 30 14:29:34 2005] [error] [client xx.x69.85.248] FastCGI: comm > with (dynamic) server "/home/temple/public_html/test.fcgi" aborted: > (first read) idle timeout (30 sec) > [Wed Mar 30 14:29:34 2005] [error] [client xx.x69.85.248] FastCGI: > incomplete headers (0 bytes) received from server > "/home/temple/public_html/test.fcgi" > [Wed Mar 30 14:29:34 2005] [error] [client xx.x69.85.248] File does not > exist: /home/temple/public_html/500.shtml > [Wed Mar 30 14:29:34 2005] [warn] FastCGI: (dynamic) server > "/home/temple/public_html/test.fcgi" has failed to remain running for 30 > seconds given 3 attempts, its restart interval has been backed off to > 600 seconds > > Lots of > > terminated by calling exit with status '255'" > > Before the FastCGI install, any *.fcgi file would simply return its > source code as plain text, so the server has picked up the fcgi > extension. I have tried putting "AddHandler fastcgi-script .fcgi" in > httpd.conf in the virtual host, but taht seemed to have no effect. > Permissions on the *.fcgi files are set to execute for all, same as > *.cgi files that all work fine. > > It would appear that something is not correct. Any help with this is > greatly appreciated > > Note: I used these install/config steps: > > # wget http://www.fastcgi.com/dist/mod_fastcgi-2.4.2.tar.gz > > # tar xvzf mod_fastcgi-2.4.2.tar.gz > > # cd mod_fastcgi-2.4.2 > > # /usr/local/apache/bin/apxs -o mod_fastcgi.so -c *.c > > # /usr/local/apache/bin/apxs -i -a -n fastcgi mod_fastcgi.so > > This should create an entry in httpd.conf that looks like this: > > LoadModule fastcgi_module <some_path>/mod_fastcgi.so > > Note that if there's a ClearModuleList directive after new entry, > you'll have to either move the LoadModule after the ClearModuleList > or add (have a look at how the other modules are handled): > > AddModule mod_fastcgi.c > > 3. Edit the httpd configuration file(s) to enable your FastCGI > application(s). See docs/mod_fastcgi.html for details. > > If you want to wrap the mod_fastcgi directives, use: > > <IfModule mod_fastcgi.c> > . > . > </IfModule> > > 4. Stop and start the server. > > # /etc/init.d/httpd stop > # /etc/init.d/httpd startssl > Hi, The fastcgi script could be found by the server; FastCGI: can't start server "/home/temple/public_html/test.fcgi" (pid 1460), execle() failed: No such file or directory If the script does exist #!/usr/local/bin/ruby may not exist at that location. Regards, Frank de Bot ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/