hauntedbyshadow has asked for the wisdom of the Perl Monks concerning the following question:
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl 500 error
by Corion (Patriarch) on Aug 11, 2014 at 13:43 UTC | |
Re: Perl 500 error
by ikegami (Patriarch) on Aug 11, 2014 at 17:07 UTC | |
Re: Perl 500 error
by mr_mischief (Monsignor) on Aug 11, 2014 at 16:00 UTC | |
Re: Perl 500 error
by Anonymous Monk on Aug 11, 2014 at 13:49 UTC | |
Re: Perl 500 error
by tbone654 (Beadle) on Aug 11, 2014 at 15:00 UTC | |
Re: Perl 500 error
by hauntedbyshadow (Initiate) on Aug 11, 2014 at 14:53 UTC | |
by Anonymous Monk on Aug 11, 2014 at 16:50 UTC | |
Re: Perl 500 error
by Anonymous Monk on Aug 11, 2014 at 21:40 UTC | |
Re: Perl 500 error
by PerlSufi (Friar) on Aug 11, 2014 at 13:33 UTC | |
by davorg (Chancellor) on Aug 11, 2014 at 14:17 UTC | |
by Corion (Patriarch) on Aug 11, 2014 at 14:21 UTC | |
by marto (Cardinal) on Aug 11, 2014 at 14:24 UTC | |
by PerlSufi (Friar) on Aug 11, 2014 at 14:40 UTC | |
by marto (Cardinal) on Aug 11, 2014 at 14:29 UTC | |
by davorg (Chancellor) on Aug 11, 2014 at 15:45 UTC | |
by Anonymous Monk on Aug 12, 2014 at 15:21 UTC |