Results 1 to 3 of 3

Thread: CGI Script with Internal Server Error

  1. #1
    samlee85 is offline x10Hosting Member
    Join Date
    May 2008
    Posts
    1

    CGI Script with Internal Server Error

    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, [email protected] 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>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
    AuthName mytestsite.x10hosting.com
    AuthUserFile /home/samlee85/public_html/_vti_pvt/service.pwd
    AuthGroupFile /home/samlee85/public_html/_vti_pvt/service.grp

  2. #2
    woiwky is offline x10 Lieutenant
    Join Date
    Mar 2008
    Posts
    390

    Re: CGI Script with Internal Server Error

    Try #!/usr/bin/perl -wT instead of #!/perl/bin/perl -wT.
    "But you have access to the greatest source of knowledge in the universe."
    "Well I do talk to myself sometimes, yes."

    "I'm back, and I'm bad! Obviously within certain, sensible, preset parameters"

  3. #3
    oscetips is offline x10Hosting Member
    Join Date
    May 2008
    Location
    london
    Posts
    26

    Re: CGI Script with Internal Server Error

    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/;

Similar Threads

  1. 500 internal server error
    By beisan-net in forum Free Hosting
    Replies: 3
    Last Post: 04-30-2008, 02:47 PM
  2. 500 Internal Server Error - Joomla
    By shutiliti in forum Free Hosting
    Replies: 0
    Last Post: 04-17-2008, 07:10 PM
  3. Replies: 2
    Last Post: 01-09-2008, 12:28 PM
  4. 500 Internal Server Error
    By fdbessjr in forum Free Hosting
    Replies: 4
    Last Post: 01-02-2008, 04:33 AM
  5. Internal Server Error?
    By anarchOi in forum Free Hosting
    Replies: 10
    Last Post: 09-08-2005, 12:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
dedicated servers