[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 24.113.12.97] (111)Connection
refused: FastCGI: failed to connect to server
"/tmp/2rbetter_archives.fcgi": connect() failed
[Thu Sep 25 21:05:53 2008] [error] [client 24.113.12.97] FastCGI:
incomplete headers (0 bytes) received from server
"/tmp/2rbetter_archives.fcgi"


I am trying to use catalyst in Standalone server mode as talked about
http://search.cpan.org/~zarquon/Catalyst-Manual-5.7013/lib/Catalyst/Manual/Cookbook.pod#Standalone_server_mode

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
*:80>)
FastCgiExternalServer /tmp/2rbetter_archives.fcgi -socket
/tmp/2rbetter_archives.socket

and inside the <VirtualHost *:80>

   # 502 is a Bad Gateway error, and will occur if the backend server is 
down
   # 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
/tmp/2rbetter_archives.socket

The files inside /home/jmbetter/archives (as seen with getfacl)
# file: archives
# owner: jmbetter
# group: jmbetter
user::rwx
group::r-x
group:www-data:rwx
mask::rwx
other::r-x

Any idea whats going on?

Thanks!


More information about the FastCGI-developers mailing list