in reply to LAMP and hosting: Convenient Perl solution, similar to PHP setup?
You've pointed to the old "issue" of ... “which came first, the webapp or the page?”
One school of thought (and by the way, such schools-of-thought exist in both the PHP and the Perl camps) says that you should always let Apache do what Apache does... serve-up a page, given its name. During the course of “serving up the page,” Apache discovers that the page contains executable code that it should run. That's the page centered approach.
The other school of thought argues that this is much too limiting, citing obvious examples such as “RESTful-ness,” in which the URI is taken to be the identifier of a resource that is not necessarily equivalent to a file. A single program intercepts all calls to the entire site, or to an entire region of it, evaluates the URI as one of its inputs, and by some means generates the appropriate response.
I find myself agreeing with the second point-of-view.
Going back to your final question, it's not at all difficult to get a Perl webapp running under shared-hosting. Simply make sure that your host is running a fairly-current version of Perl. Choose a convenient web-application framework in Perl, and set it up as per its instructions ... which no doubt will include very-specific guidelines for a shared hosting environment. Anything from Catalyst to CGI::Application can be pressed into service, and that's just with Perl.
You will undoubtedly find yourself setting up a local-to-yourself directory for the installation of CPAN modules, and module-versions, that are necessarily different from whatever the shared-hosting company has installed. It's easy to do; I've written on this topic myself here.
And then, just relax and dive in. No matter what approach you finally choose, it's going to feel weird the first few times you try it. Nothing to do with you, or with your site, or with the tool, or with Perl or PHP, your shared-host, or the phase of the moon. (Well, maybe the phase of the moon...) Just expect it, and move on. That's why it's usually best to set up a replica environment on your local servers, or even your own box, so that you can bash your head against the wall in quiet and peace. As you figure things out, keep a diary and take very careful, detailed notes ... because you will forget what you did and how you did it.
P.S. For all the sites that I maintain, the authoritative copy is located on one of my servers, which is configured (as seen by this-or-that site) exactly like the appropriate host. Updating the site consists of tagging the files in the version-control system (to remember exactly what was “released today”), then using rsync to send the files up to the host. Testing is done locally, thanks to the /etc/hosts file and a slightly-different domain name (“.moc”), and I know that when the files go up to the shared-hosting site they will perform exactly the same as they do here. Work out such a system for yourself, document it (even for yourself), create checklists and procedures, and stick to them.
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: LAMP and hosting: Convenient Perl solution, similar to PHP setup?
by kyle (Abbot) on Mar 12, 2008 at 20:30 UTC | |
by locked_user sundialsvc4 (Abbot) on Mar 14, 2008 at 15:00 UTC | |
by kyle (Abbot) on Mar 15, 2008 at 01:50 UTC | |
|
Re^2: LAMP and hosting: Convenient Perl solution, similar to PHP setup?
by Anonymous Monk on Mar 13, 2008 at 00:13 UTC | |
by locked_user sundialsvc4 (Abbot) on Mar 14, 2008 at 15:17 UTC | |
by Anonymous Monk on Mar 13, 2008 at 06:49 UTC |