I'm also currently in the process of getting my first Catalyst App into live mode and, yes, it does take some getting used to and I understand your problems very well.

Essentially, it boils down to this: your Catalyst app comes with a script directory. In there you find the standalone server script for development XXXX_server.pl and also a script called XXXX_fastcgi.pl (where XXX is the name of your app). To deploy the app, you need to run that script like so:

script/myapp_fastcgi.pl --listen /tmp/XXXX,sock -n 3 -p /tmp/XXXX.pid +-d

This tells the server to start three processes that listen to a socket file /tmp/XXXX,sock (that's used for apache to connect to your app later) and write their process id file in /tmp as well. The -d option makes the script go to the background and run as a daemon.

Now you need to connect apache to your fastcgi app. You have installed mod_fastcgi already. in your apache config file, add this:

LoadModule fastcgi_module modules/mod_fastcgi.so FastCGIExternalServer /tmp/XXXX.fcgi -socket /tmp/XXXX.sock Alias /XXXX/ /tmp/XXXX.fcgi/

This bit is slightly esoteric :-) As far as I understand, /tmp/XXXX.fcgi ist not an actual file, but it needs to be in a directory that is writable to apache and it must have the .fcgi suffix for some reason. Just go with the flow here... You then actually hook up you app by pointing apache to the socket file that your fastcgi server created. This worked for me. Good luck!


In reply to Re: Set up Catalyst with Fast CGI on Apache2 by tospo
in thread Set up Catalyst with Fast CGI on Apache2 by CColin

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.