Hello,
I’m pretty new to Perl and especially the server requirements of it. But I’ve inherited a site that was built with Perl/CGI and we were forced to switch servers (with no help from the previous developer).
On the original server they had a Perl Module located here:
/home/www/AppCode/app.pm
And they had a staging area similarly with module here:
/home/staging/AppCode/app.pm
Each of those accessible through either the “www” or “staging” sub-domains, respectively.
We could edit the .pm file and FTP it up, and changes would be immediate.
On this new server, the host wanted to install the .pm files to this location:
/usr/lib/perl5/site_perl/app.pm
This allowed the host to get our site up and running. However, now we can’t easily just FTP up an update.
They also installed the “staging” sub-directory under the main site’s location like this:
/home/www/staging/
The sub-domains to access them work just like you’d want them too, but now both www and staging are using the Module from the “perl5” location, and the version of that file that is in the site files doesn’t get loaded up.
It’s important that staging loads its own version of the Perl Module because it contains a database connection string which differs between the two environments.
I’ve explained this to my host, but they seem to not fully understand what I need to do.
I have SSH access, so if someone could point me in the right direction I could just do it myself and not go back-and-forth with the host.
I’ve been here:
Perl Module Mechanics
But even their “non-standard location” section seems to not fit my needs with keeping the staging area running its own version.
Thanks for any help!
Brandon