Hey guys, so i'm a little stuck here. I have a perl page i'm trying to first get working on a local host enviroment before I move it over to my production server. However if I use a simple hello.pl page it works perfect in the browser
However when I try to load the actual script 'step1.pl' and open it I just get a 500 error. So I tailed the error_log to see why and I found this.#!/usr/bin/perl print "Content-type: text/html\n\n"; print "Hello this is just a kindness.\n";
However I know that CGI.pm is installed.[Mon Aug 11 08:19:07 2014] [error] Can't locate CGI.pm in @INC (@INC c +ontains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/per +l5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/sha +re/perl5 . /etc/httpd) at /var/www/vhosts/ibstrategies.com/httpdocs/s +tep1.pl line 3.\nBEGIN failed--compilation aborted at /var/www/vhosts +/ibstrategies.com/httpdocs/step1.pl line 3.\n
Any ideas i'm really confused.[root@chelsea /]# perl -e 'use CGI; print $CGI::VERSION."\n";' 4.03
In reply to Perl 500 error by hauntedbyshadow
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |