http://www.perlmonks.org?node_id=1060891

code-ninja has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,

I made this small Catalyst app to send JSON data to some client. It is a very simple app and just has one controller (its just a test app, don't bite me for using just one controller!). I'm trying to deploy it on an Apache2 server with fastCGI. I referred this, this and this docs.

In my apache2.conf file, I appended the following:

<VirtualHost *:80> ServerName www.testjson.com DocumentRoot /home/code-ninja/Projects/Perl/testJSON <Directory /home/code-ninja/Projects/Perl/testJSON> Options +ExecCGI </Directory> <Files testjson_fastcgi.pl> SetHandler fastcgi-script </Files> </VirtualHost>

But I'm unable to deploy the app as I dreamed I would.

Also, I read that I can use the in-built server as a full-fledged server using Catalyst::Engine::HTTP::Prefork but I can't make it work. :-(

When I say CATALYST_ENGINE="HTTP::Prefork" myapp_server.pl it complains about missing HTTP::Prefork package. I tried installing it from CPAN but for some reason, it fails during the tests.

I'd be really grateful if some Monk would point me to a good guide elucidating the deployment process. I have configured Apache2 during my RHCE course I took a few years back so I know the jargons quite well. *noviceShowOffSmile*