Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Location
    United States
    Posts
    30

    500 errors on CGI scripts

    Hi all,
    Every cgi script I install, I keep getting the 500 internal server error. I have cpanel on my own vps server. The path to perl is /usr/bin/perl. In the cgi scripts the path is #!/usr/bin/perl. I have tried using both paths, and have tried the path !/usr/bin/perl. Still get the internal server error. I have tried using every permission configuration and keep getting the error. I have made sure the first line in the script is the path to perl, and have put the files in the cgi_bin of my website, but nothing works.

    Can someone please tell me how to install a cgi script properly. I always use php scripts because I could never get a cgi script to work. I have several cgi scripts on my hard drive that I would like to use, but need someone to tell me the proper way of installing them so I don't keep getting the internal server error.

    I have shell access to the server, is there something I need to change on the server itself or is it all in just the scripts settings?

    Thank you for your time.

  2. #2
    Join Date
    Nov 2009
    Location
    United States
    Posts
    30
    so why do I get the internal server error?

  3. #3
    Join Date
    May 2009
    Posts
    766
    Try this:

    PHP Code:
    use CGI::Carp qw/fatalsToBrowser/; 
    Should tell you what's going wrong. If the script isn't getting far enough to dump an error message to the browser, then check your web server error logs.

    Matt

  4. #4
    Join Date
    Nov 2001
    Location
    Vancouver
    Posts
    2,422
    Quote Originally Posted by cpanel-host View Post
    is there something I need to change on the server itself
    1. What is showing up in the webserver's error log? This should ALWAYS be your first stop. Paste into the thread a representative error line.

    2. Does the script run at all from the command line?

    Personally I think people should be banned from using a higher level abstraction (like PHP or like any other web framework) until they can demonstrate they can write and run a simple CGI script.
    “Even those who arrange and design shrubberies are under
    considerable economic stress at this period in history.”

Similar Threads

  1. Email Errors - 550 Callback errors
    By truenegative in forum Hosting Security and Technology
    Replies: 5
    Last Post: 02-15-2007, 10:43 AM
  2. Replies: 1
    Last Post: 05-26-2006, 09:18 PM
  3. Replies: 6
    Last Post: 03-11-2006, 11:50 PM
  4. Replies: 10
    Last Post: 05-27-2005, 11:44 AM
  5. Daily /scripts/upcp errors...
    By JCJiffy in forum Hosting Security and Technology
    Replies: 1
    Last Post: 08-21-2004, 07:07 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
  •