Unix and Linux Discussions Tagged with bashrc |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
4 |
11,889 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
2,523 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
8,733 |
Shell Programming and Scripting |
|
|
|
0 |
3,231 |
Shell Programming and Scripting |
|
|
|
2 |
2,637 |
Ubuntu |
|
|
|
1 |
15,854 |
UNIX for Dummies Questions & Answers |
|
|
|
12 |
61,951 |
Shell Programming and Scripting |
|
|
|
3 |
18,450 |
Ubuntu |
|
|
|
4 |
5,852 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
7,830 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
6,560 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
6,043 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
44,354 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,446 |
Shell Programming and Scripting |
|
|
|
3 |
7,825 |
UNIX for Dummies Questions & Answers |
|
|
|
16 |
10,155 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
12,273 |
Shell Programming and Scripting |
|
|
|
2 |
2,604 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,023 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
25,087 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,765 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
7,110 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
7,003 |
UNIX for Dummies Questions & Answers |
Catalyst::Manual::Deployment::SharedHosting(3pm) User Contributed Perl Documentation Catalyst::Manual::Deployment::SharedHosting(3pm)
NAME
Catalyst::Manual::Deployment::SharedHosting - Deploying Catalyst on Shared Hosting
Catalyst on shared hosting
So, you want to put your Catalyst application 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 in a local directory on your shared
host. First, run
perl -MCPAN -e shell
and go through the standard CPAN configuration process. Then exit without installing anything. Next, download the latest local::lib package
and follow its 'bootstrap' instructions to get it installed and the local configuration added to your "~/.bashrc".
Now log out, then back in again (or run ". .bashrc" if you prefer).
Now you can install the modules you need using CPAN as normal; they will be installed into your local directory, and Perl will pick them
up. Finally, change into the root directory of your virtual host, and symlink your application's script directory:
cd path/to/mydomain.com
ln -s ~/lib/MyApp/script script
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):
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/?script/myapp_fastcgi.pl
RewriteRule ^(.*)$ script/myapp_fastcgi.pl/$1 [PT,L]
Now "http://mydomain.com/" should now Just Work. Congratulations, now you can tell your friends about your new website.
AUTHORS
Catalyst Contributors, see Catalyst.pm
COPYRIGHT
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-01-20 Catalyst::Manual::Deployment::SharedHosting(3pm)