[Catalyst] Catalyst using fast CGI
Stephen Sykes
stephen at stephensykes.us
Fri May 23 02:12:31 BST 2008
gordon at gorste.plus.com wrote:
> Dear List
>
> I am trying to get Catalyst working through apache by using fastcgi. I am
> having difficulty in achieving this. This problem is that I seam to be
> getting apache error code 13. My config for my website is:
>
> <VirtualHost *:80>
> ServerName www.dnsemail.co.uk
> DocumentRoot /var/www/dnsemail
> ErrorLog logs/www.dnsemail.co.uk.error_log
> TransferLog logs/www.dnsemail.co.uk.access_log
>
>
> # Allow CGI script to run
> <Directory /var/www/dnsemail/script>
> Options +ExecCGI
> </Directory>
>
> # Tell Apache this is a FastCGI application
> Alias / /var/www/dnsemail/script/dnsemail_fastcgi.pl/
>
> <Files dnsemail_fastcgi.pl>
> SetHandler fastcgi-script
> </Files>
>
> <Location />
> Options ExecCGI
> Order allow,deny
> Allow from all
> AddHandler fcgid-script .pl
> </Location>
> </VirtualHost>
>
> I am running it on Fedora Core 6 with Apache 2. Can someone point me in
> the right direction in getting Catalyst framework running under Apache 2.
>
>
> Regards
>
> Gordon
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>
Here's the setup I use for all my sites, using FastCGI on Fedora 9.
htpd.conf
----------------------------------------------------------------------------------------------
# CatalystSites.org
FastCgiServer /var/www/catalystsites.org/script/catalystsites_fastcgi.pl
<VirtualHost *:80>
ServerName www.catalystsites.org
DocumentRoot /var/www/catalystsites.org/root
<Location /static>
SetHandler default-handler
</Location>
#Alias /var/www/catalystsites.org/root/static
Alias / /var/www/catalystsites.org/script/catalystsites_fastcgi.pl/
</VirtualHost>
-----------------------------------------------------------------------------------------------
You may launch your app as a standalone server listening on a socket
(http://search.cpan.org/~zarquon/Catalyst-Manual-5.7011/lib/Catalyst/Manual/Cookbook.pod#FastCGI_Deployment)
script/catalystsites_fastcgi.pl -l /tmp/catalystsites.socket -n 5 -p
/tmp/catalystsites.pid -d
As Jonathan pointed out, "FastCgiServer
/var/www/catalystsites.org/script/catalystsites_fastcgi.pl" should be
required. Hope that helps.
[stephen]
More information about the Catalyst
mailing list