[FASTCGI] 500 Internal Server Error

adsarebad at gmail.com adsarebad at gmail.com
Fri Sep 26 00:28:12 EDT 2008

Hello all,

I have looked around for a few hours and can`t figure out whats wrong.
Debian etch server with apache.  In my log file I get

[Thu Sep 25 21:05:53 2008] [error] [client] (111)Connection
refused: FastCGI: failed to connect to server
"/tmp/2rbetter_archives.fcgi": connect() failed
[Thu Sep 25 21:05:53 2008] [error] [client] FastCGI:
incomplete headers (0 bytes) received from server

I am trying to use catalyst in Standalone server mode as talked about

So I started a fastcgi server
/home/jmbetter/archives/script/archives_fastcgi.pl -l
/tmp/2rbetter_archives.socket -n 5 -p /tmp/2rbetter_archives.pid -d

I added some stuff to my apache virtual host config (before <VirtualHost
FastCgiExternalServer /tmp/2rbetter_archives.fcgi -socket

and inside the <VirtualHost *:80>

   # 502 is a Bad Gateway error, and will occur if the backend server is 
   # This allows us to display a friendly static page that says "down for
   # maintenance"
   Alias /_errors /var/www/MyApp/root/error-pages
   ErrorDocument 502 /_errors/502.html

#Options +ExecCGI
   Alias /archives/ /tmp/2rbetter_archives.fcgi/
RewriteRule ^/archives$ archives/ [R]

I also tried making the www-data group able to rwx in
/home/jmbetter/archives.  The server was started as the jmbetter user.
Do I have some other permision issue here?  The socket
srwxrwxrwx 1 jmbetter jmbetter 0 2008-09-25 18:49

The files inside /home/jmbetter/archives (as seen with getfacl)
# file: archives
# owner: jmbetter
# group: jmbetter

Any idea whats going on?


More information about the FastCGI-developers mailing list