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! |