[Catalyst] Notes on installing lighttpd and FastCGI for Catalyst

Ash Berlin ash_cpan at firemirror.com
Sat Jun 6 10:47:20 GMT 2009

On 6 Jun 2009, at 11:32, kakimoto at tpg.com.au wrote:

> Well, I'm facing an issue with setting up lighthttpd for production  
> use
> of my catalyst app.
> I'm a developer so any setup task dealing with systems does cause  
> problems.
> I observed another thread pretty similar to this but there's no  
> reply to
> whether it's been solved or not.
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/msg00146.html

You only waited 1 day. Reposting the entire message after such a short  
period is usually seen as bad behaviour.

On 6 Jun 2009, at 10:04, kakimoto at tpg.com.au wrote:

> hi guys,
> I'm facing some problems with
> http://dev.catalyst.perl.org/wiki/deployment/lighttpd_fastcgi.
> I followed the instructions and still can't get to anyone of my sites
> listed below.
> - www.myapp.com/  (production)
> - www.myapp.com:59000/  (production)
> - www.stage.myapp.com:59000/  (staging)
> 1) I still have the default "/etc/lighttpd/lighttpd.conf" existing. Is
> that going to cause confusion?

Shouldn't do.

> 2) Since the tute instructed us to make the
> /etc/lighttpd/conf-available/20_stage.conf and
> /etc/lighttpd/conf-available/20_prod.conf, should I start lighttpd  
> with:
>  - lighttpd -f /etc/lighttpd/conf-available/20_stage.conf
>  - lighttpd -f /etc/lighttpd/conf-available/20_prod.conf

No, if you look in /etc/lighttpd/lighttpd.conf, you will see

   ## load enabled configuration files,
   ## read /etc/lighttpd/conf-available/README first
   include_shell "/usr/share/lighttpd/include-conf-enabled.pl"

Which will include those two files for you (this is assuming you are  
running on Debian or a derivative.)

For those 2 config files to be enabled, they need to be symlinked  
into /etc/lighttpd/conf-enabled. That seems to be the step missing in  
the wiki:

  $ sudo lighty-enable-mod stage prod

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090606/5333794c/attachment.htm

More information about the Catalyst mailing list