Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 5 of 5

This is a discussion on Internal Server Error problem in the Shared & Semi-Dedicated forum
Hi! I was uploading a cgi script called "finger" I did everything that was in the install file and I uploaded the files as text/ascii ...

  1. #1
    JPC Member
    Join Date
    Mar 2003
    Location
    Norway
    Posts
    9

    Internal Server Error problem

    Hi!

    I was uploading a cgi script called "finger" I did everything that was in the install file and I uploaded the files as text/ascii and I've chmoded the files properly, but still I get an 505 Internal Server Error. Anyone know what I might have forgotten to do ?

    Thanks in advance
    blackhat
    Best Regards
    R.A:.

  2. #2
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Check that the line at the top of the file has the correct path. If the script is perl, use #!/usr/bin/perl. If its python, use #!/usr/bin/python.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  3. #3
    JPC Member
    Join Date
    Mar 2003
    Location
    Norway
    Posts
    9
    Thanks, but that line is correct
    Best Regards
    R.A:.

  4. #4
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Could you post the code or a link to where you got it from? It could be a missing newline in the code or something...

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  5. #5
    JPC Senior Member
    Join Date
    Sep 2001
    Posts
    50
    1. connect to your site by SSH.
    2. Navigate to the directory where your script is located.
    3. do "ls -l" to verify the permissions are 755.
    3. run "perl -c ./finger.cgi" or finger.pl, however your script is named. this will check the syntax of your script without actually running it. if you get anything other than "syntax OK" you have a problem in the code.
    You may also find a hint in your error log although it'll probably just say "premature end to script headers" meaning your script crashed.
    --
    Alien Heat - Affordable Web Hosting and Design
    http://www.AlienHeat.com

Bookmarks

Posting Permissions

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