Catalystadventures in webdev with perl Catalyst on shared hostingSo, you want to put your Catalyst app out there for the whole world to see, but you don't want to break the bank. There is an answer - if you can get shared hosting with FastCGI and a shell, you can install your Catalyst app. First, run
and go through the standard CPAN configuration process. Then exit out without installing anything. Next, open your .bashrc and add
and log out, then back in again (or run ". .bashrc" if you prefer). Finally, edit .cpan/CPAN/MyConfig.pm and add
Now you can install the modules you need with CPAN as normal, and perl will pick them up. Finally, change directory into the root of your virtual host and symlink your application's script directory in -
And add the following lines to your .htaccess file (assuming the server is setup to handle .pl as fcgi - you may need to rename the script to myapp_fastcgi.fcgi and/or use a SetHandler directive) -
http://mydomain.com/ should now Just Work. Congratulations, now you can tell your friends about your new website (or in our case, tell the client it's time to pay the invoice :) -- mst last updated 2 years ago # |