CGI Script with Internal Server Error

Discussion in 'Scripts, 3rd Party Apps, and Programming' started by samlee85, May 31, 2008.

  1. samlee85

    samlee85 New Member

    i know this seems to be repeated .. but i cant seem to fix it... thanks in advance!!

    the error i get is:
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    my cgi file: (in public_html/cgi-bin/ )
    #!/perl/bin/perl -wT
    print "Content-type: text/html\n\n";
    print "<h2>Hello, World!</h2>\n";

    and i placed it in /public_html/cgi-bin/
    i have check the CHMODs and they are all 755
    my .htacess is default as i have not touched it and i do not know what to change.

    the .htaccess file is as follows: (it is in /public_html/ )
    # -FrontPage-
    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    AuthUserFile /home/samlee85/public_html/_vti_pvt/service.pwd
    AuthGroupFile /home/samlee85/public_html/_vti_pvt/service.grp
  2. woiwky

    woiwky New Member

    Try #!/usr/bin/perl -wT instead of #!/perl/bin/perl -wT.
  3. oscetips

    oscetips New Member

    yeh i use:

    #!/usr/bin/perl -w
    use CGI;
    use Fcntl qw:)DEFAULT :flock);
    use File::Temp qw/ tempfile tempdir /;
    use CGI::Carp qw/fatalsToBrowser/;

Share This Page