1Catalyst::Manual::DeploUysmeerntC:o:nSthraiCrbaeutdtaHelodysstPtie:nr:glM(a3Dn)oucaulm:e:nDteaptliooynment::SharedHosting(3)
2
3
4

NAME

6       Catalyst::Manual::Deployment::SharedHosting - Deploying Catalyst on
7       Shared Hosting
8

Catalyst on shared hosting

10       So, you want to put your Catalyst application out there for the whole
11       world to see, but you don't want to break the bank. There is an answer
12       - if you can get shared hosting with FastCGI and a shell, you can
13       install your Catalyst app in a local directory on your shared host.
14       First, run
15
16           perl -MCPAN -e shell
17
18       and go through the standard CPAN configuration process. Then exit
19       without installing anything. Next, download the latest local::lib
20       package and follow its 'bootstrap' instructions to get it installed and
21       the local configuration added to your "~/.bashrc".
22
23       Now log out, then back in again (or run ". .bashrc" if you prefer).
24
25       Now you can install the modules you need using CPAN as normal; they
26       will be installed into your local directory, and Perl will pick them
27       up.  Finally, change into the root directory of your virtual host, and
28       symlink your application's script directory:
29
30           cd path/to/mydomain.com
31           ln -s ~/lib/MyApp/script script
32
33       And add the following lines to your .htaccess file (assuming the server
34       is setup to handle .pl as fcgi - you may need to rename the script to
35       myapp_fastcgi.fcgi and/or use a SetHandler directive):
36
37         RewriteEngine On
38         RewriteCond %{REQUEST_URI} !^/?script/myapp_fastcgi.pl
39         RewriteRule ^(.*)$ script/myapp_fastcgi.pl/$1 [PT,L]
40
41       Now "http://mydomain.com/" should now Just Work. Congratulations, now
42       you can tell your friends about your new website.
43

AUTHORS

45       Catalyst Contributors, see Catalyst.pm
46
48       This library is free software. You can redistribute it and/or modify it
49       under the same terms as Perl itself.
50
51
52
53perl v5.34.0                    Ca2t0a2l1y-s0t7:-:2M2anual::Deployment::SharedHosting(3)
Impressum