[FASTCGI] 500 Internal Server Error

Rob Saccoccio robs at fastcgi.com
Fri Sep 26 07:52:18 EDT 2008


Have you tried the "easier" method (#2) in the Catalyst link you provided?
That allows mod_fastcgi to start the Catalyst processes (and to construct
the unix domain socket).

WRT standalone server mode, my guess is that the problem your seeing is
permissions related.  Make sure that the socket's file permissions grant the
user/group your running httpd as with access or try using a TCP port
instead.

Rob

> -----Original Message-----
> From: fastcgi-developers-bounces+robs=fastcgi.com at mailman.fastcgi.com
> [mailto:fastcgi-developers-bounces+robs=fastcgi.com at mailman.fastcgi.com]
> On Behalf Of adsarebad at gmail.com
> Sent: Friday, September 26, 2008 12:28 AM
> To: fastcgi-developers at mailman.fastcgi.com
> Subject: [FASTCGI] 500 Internal Server Error
> 
> 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!
> _______________________________________________
> FastCGI-developers mailing list
> FastCGI-developers at mailman.fastcgi.com
> http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers




More information about the FastCGI-developers mailing list