Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member sh4ka's Avatar
    Join Date
    May 2005
    Posts
    434

    Default Error 500 while loading perl file.

    Hello,

    We have a perl script that is located under cgi-bin/yabb/

    Everytime it's loaded is causing an error 500, suexec logs shows everything correct but error_log shows this:

    Code:
    [Wed Mar 25 00:58:18 2009] [error] [client 190.135.xxx.xxx] Can't locate Upload/CGI.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl . ./Modules ./Modules/Upload ./Modules/Digest ./Modules ./Modules/Upload ./Modules/Digest) at ./Sources/Subs.pl line 605.
    [Wed Mar 25 00:58:18 2009] [error] [client 190.135.xxx.xxx] BEGIN failed--compilation aborted at ./Sources/Subs.pl line 605.
    [Wed Mar 25 00:58:18 2009] [error] [client 190.135.xxx.xxx] Compilation failed in require at YaBB.pl line 57.
    [Wed Mar 25 00:58:18 2009] [error] [client 190.135.xxx.xxx] Premature end of script headers: YaBB.pl
    It seems CGI.pm module can't be found.. can this be installed on the server? searched for this module in WHM - Main >> Software >> Module Installers but I wasn't able to find any module named like this.

    In the other hand.. a simple "hello world" in the same directory works perfect.. so.. perl is working.. but the forum .pl file doesn't, don't know why.. permissions are 755 and owner are user.user.

    Can anybody guide me? I'm using RHEL 5 + latest cPanel Current release tree.

    Thanks.
    Last edited by Infopro; 03-24-2009 at 09:58 PM.

  2. #2
    Member sh4ka's Avatar
    Join Date
    May 2005
    Posts
    434

    Default

    However, after ran find command saw that cgi.pm is actually installed :s

    [root@server.hostname.com:~]find / -name CGI.pm -print 2>/dev/null
    /home/.cpan/build/AppConfig-1.66/blib/lib/AppConfig/CGI.pm
    /home/.cpan/build/AppConfig-1.66/lib/AppConfig/CGI.pm
    /home/.cpan/build/CGI.pm-3.33-KHNxXi/blib/lib/CGI.pm
    /home/.cpan/build/CGI.pm-3.33-KHNxXi/CGI.pm
    /home/.cpan/build/Template-Toolkit-2.19/blib/lib/Template/Plugin/CGI.pm
    /home/.cpan/build/Template-Toolkit-2.19/lib/Template/Plugin/CGI.pm
    /home/.cpan/build/Template-Toolkit-2.20-_zd_zF/lib/Template/Plugin/CGI.pm
    /home/.cpan/build/Template-Toolkit-2.20-_zd_zF/blib/lib/Template/Plugin/CGI.pm
    /home/.cpan/build/CGI.pm-3.42-MxCP6N/CGI.pm
    /home/.cpan/build/CGI.pm-3.42-MxCP6N/blib/lib/CGI.pm
    /home/installd/perl588installer/perl-5.8.8/lib/CGI.pm
    /usr/lib/perl5/5.8.8/CGI.pm
    /usr/lib/perl5/site_perl/5.8.8/AppConfig/CGI.pm
    /usr/lib/perl5/site_perl/5.8.8/i686-linux/Template/Plugin/CGI.pm
    /var/cpanel/perl/easy/Cpanel/Easy/PHP5/CGI.pm
    /var/cpanel/perl/easy/Cpanel/Easy/PHP4/CGI.pm
    [root@server.hostname.com:~]
    May this be a script problem? or a server problem? what do you think?

  3. #3
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

  4. #4
    cPanel Staff
    Join Date
    Aug 2007
    Posts
    25

    Default

    It would appear your script is trying to use Upload::CGI, which isn't a module published on CPAN. Do you have a module CGI.pm in a directory named Upload, that is included in the @INC path for that script?

    If you're trying to use the CPAN published CGI.pm module, you will need to drop the Upload:: from the use of that module inside the script
    Stephen Bee
    Quality Assurance

Similar Threads & Tags
Similar threads

  1. 500 Internal Server Error with PHP file
    By LSteamGeo in forum cPanel and WHM Discussions
    Replies: 26
    Last Post: 05-19-2011, 12:03 AM
  2. !!Help~!! 500 Internal Server Error! (Perl Script)
    By goodgbb in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-01-2006, 04:06 AM
  3. If Perl produces a 500 server error would phpsuexec as well?
    By jackie46 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-16-2005, 12:17 PM
  4. Replies: 6
    Last Post: 06-23-2004, 10:36 PM
  5. SSL + Perl = 500 error?
    By lazula in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-13-2003, 03:34 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube