Greetings oh wise ones. I am a newbie who has been banging his skull for 2 weeks with no satisfaction.
I am looking to run the CGI:Session module on a Web site hosted by ISP, Register.com. They don't provide telnet or
any other tools to execute a file on the site so I cannot run PPM or CPAN to open and install the module.
I am proposing to extract the files to my Windows PC (done from Active State) and then FTP them to the cgi-bin
folder of my hosted Web site. Somewhere I read that I can do that if I copy the directories and the *.pm files:
cgi-bin/lib/CGI
session.pm
cgi-bin/lib/CGI/Session
Fast.pm, Switch.pm, Apache.pm, Carp.pm, Push.pm,
Cookie.pm, Session.pm
cgi-bin/lib/CGI/Session/ID
incr.pm, md5.pm, static.pm
cgi-bin/lib/CGI/Session/Driver
a bunch of *.pm files
cgi-bin/lib/CGI/Session/Serialize
a bunch of *.pm files
etc..... everything is permission 755
But my script is not working! Can this installation method work? Or is there a problem with my script:
#!/usr/bin/perl -w
use strict;
use CGI;
use lib '~/cgi-bin/lib/CGI/';
use CGI::Carp qw(fatalsToBrowser);
use CGI::Session;
my $cgi = new CGI;
my $session = new CGI::Session(undef, $cgi, {Directory=>'/tmp'});
Browser Error message:
Software error:
Can't locate CGI/Session.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.6.1/i686-linux
/usr/local/lib/perl5/5.6.1
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl .) at /services/webpages/d/o/domaine.com/cgi-bin/login1.pl line 5.
BEGIN failed--compilation aborted at /services/webpages/d/o/domaine.com.com/cgi-bin/login1.pl line 5.
Note: domaine.com is my substutite
I am told their servers run Apache /Unix (should be on or the other, right?