+ Reply to Thread
Results 1 to 8 of 8

Thread: 500 internal server error

  1. #1
    drf1229 is offline x10Hosting Member drf1229 is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    71

    500 internal server error

    I keep getting a 500 internal server error whenever I try to run a cgi script. It looks like this: http://www.algebrahelper.x10hosting....i-bin/test.cgi
    I don't get it because this is all I have in my script:
    PHP Code:
    #!/usr/bin/perl
    use strict;
    use 
    warnings;
    print 
    "Content-type: text/html\n\n";
    print 
    "Hello, World...\n"
    and my permissions are set to 755. I'm completely new to this so any advice is greatly appreciated.
    Your 14 year old web developer. If I can do it, you can!
    My site
    My iPhone App

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,267

    Re: 500 internal server error

    Code:
    #! /usr/bin/perl
    
    use strict ;
    use CGI::Carp qw(fatalsToBrowser);
    use warnings;
    print "Content-type: text/html\n\n";
    print "Hello, World...\n";
    Try it with the added line.
    And as I post this, the link you posted came up a 404 Missing

    Also, if you uploaded the script from a Windows machine, try uploading it again in ASCII mode.
    Last edited by descalzo; 02-28-2010 at 11:31 AM.
    Nothing is always absolutely so.

  3. #3
    drf1229 is offline x10Hosting Member drf1229 is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    71

    Re: 500 internal server error

    Hey thanks for your response! Sorry about the missing link, I renamed the file to do something and forgot to change it back. I changed it back so the link now works. I tried the script with the added line, but I still have the same error. I didn't upload the file from my computer but just created it in the legacy file manager. Could this be the problem?
    Your 14 year old web developer. If I can do it, you can!
    My site
    My iPhone App

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,267

    Re: 500 internal server error

    Log onto cPanel
    Scroll down to Logs section
    Click on Error Log

    See if there are any recent entries.

    Also, I would drop use warnings. Just personal pref.
    Last edited by descalzo; 02-28-2010 at 12:02 PM.
    Nothing is always absolutely so.

  5. #5
    niu111 is offline x10Hosting Member niu111 is an unknown quantity at this point
    Join Date
    Dec 2009
    Posts
    1

    Re: 500 internal server error

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, support@x10hosting.com 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.
    I'm getting the same thing trying to access my phpBB forums and separate programs in PHP. What's up?

  6. #6
    drf1229 is offline x10Hosting Member drf1229 is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    71

    Re: 500 internal server error

    When I clicked on the error log, I got the following error:
    Code:
    [Sun Feb 28 15:19:53 2010] [error] [client 68.50.28.230] File does not exist: /home/drf1229/public_html/500.shtml
    Your 14 year old web developer. If I can do it, you can!
    My site
    My iPhone App

  7. #7
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,267

    Re: 500 internal server error

    That is just because you/x10 does not have a 500 error page.
    If it were permissions, the error log would have said that.
    Try creating a whole new file with the same code typed in and see if that runs.

    Also, make sure the #! line is the absolute first line.
    Last edited by descalzo; 02-28-2010 at 04:25 PM.
    Nothing is always absolutely so.

  8. #8
    drf1229 is offline x10Hosting Member drf1229 is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    71

    Re: 500 internal server error

    Hmm... I tried creating a blank file with the same code typed in and came up with the same error. (http://www.algebrahelper.x10hosting....-bin/test2.cgi). I also created my own 500.shtml file. When I do this, I no longer get errors in the log, but its still going to an error handler, so obviously there are still problems. Do you think I should try creating the file on my computer (mac) and then uploading it?
    Your 14 year old web developer. If I can do it, you can!
    My site
    My iPhone App

+ Reply to Thread

Similar Threads

  1. Replies: 3
    Last Post: 09-08-2008, 10:13 PM
  2. Replies: 2
    Last Post: 01-09-2008, 01:28 PM
  3. Error 500 Internal Server Error Installing Wordpress
    By othrayte in forum Free Hosting
    Replies: 3
    Last Post: 08-31-2007, 05:47 PM
  4. XML request error: Internal Server Error (500)
    By rjl61 in forum Free Hosting
    Replies: 5
    Last Post: 08-31-2007, 07:44 AM
  5. Error Type: 500 Internal Server Error
    By TranceOperator in forum Free Hosting
    Replies: 3
    Last Post: 03-12-2005, 09:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers