Re: 500 Internal Server Error
"Rob Saccoccio" <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <BBEA222D565F49F398340DE49F2F0A14@maisel> |
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-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org > [mailto:fastcgi-developers-bounces+robs=fastcgi.com-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org] > On Behalf Of [email protected] > Sent: Friday, September 26, 2008 12:28 AM > To: fastcgi-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org > 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-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org > http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers