The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

schlabo scripts- 500 internal server error

Discussion in 'General Discussion' started by anish sidhan, Dec 20, 2003.

  1. anish sidhan

    anish sidhan Well-Known Member

    Joined:
    Sep 26, 2003
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    The page http://www.erikogenki.net/cgi-bin/schlabo/admin.pl is giving me Internal Server Error. The link http://www.gocchin.com/cgi-bin/schlabo/admin.pl is on the same server and working well. All the other scripts are working fine and the schlabo scripts are working fine for the domain gocchin.com on the same server. I have also installed CGI::Carp which is needed for the working of schlabo scripts.

    The other things I did check was


    1. First and the Foremost Check the Shebang line #!/usr/bin/perl ==> Valid.

    2. Check the Permissons 755 for .cgi and .pl files.

    3. Check the httpd.conf and u have the ScriptAlias /cgi-bin line (By default it exists) but make sure that it does.

    4. Normally when u execute the script the Browser shows "500- Internal Server errro" and the error_log says "Premature end of script header". This can also happen if u have any perl module missing. so to solve it just add these two line after the Shebang line.
    ###################################
    use CGI;
    use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
    ###################################

    Then execute the script from the browser it will give out the exact error.

    6. adding the content line somewhere near the top of the script
    Also be sure that the scrpit doesn't send any header's before the print "Content-type: text/html";

    I did check the error log and gotr the message ::
    Premature end of script headers: /home/erikogen/public_html/cgi-bin/schlabo/admin.pl

    Any help on this matter would be greatly helpful. I am awaiting your response. Thanks in advance.


    --Anish
     
  2. TheVoice

    TheVoice Well-Known Member

    Joined:
    Feb 7, 2002
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    16
    try running /scripts/fixsuexecscripts
     
  3. anish sidhan

    anish sidhan Well-Known Member

    Joined:
    Sep 26, 2003
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Earlier I found that CGI.pm version 3.01 is causing problems, but that error vanished as soon as I installed the latest stable version from http://stein.cshl.org/WWW/software/CGI/
    So, the real reason is yet to be seen, as for now the issue is NOT internel server error, but the installation program failing to configure config.pl files on its own.

    How can we check this.( whether it is being configured). Any advice on this would be valuable. Thanks in advance

    --Anish
     
  4. bash3r

    bash3r Registered

    Joined:
    Nov 4, 2003
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Matt's FormMail.pl

    I'm experienceing the SAME problem with FormMail.pl, not the formmail.pl that is installed with cPanel, as it does not work the same as the official FormMail script.

    Any resolution on this issue?

    Thanks
     
Loading...

Share This Page