Results 1 to 4 of 4
Thread: 500 errors on CGI scripts
Hybrid View
-
11-07-2009, 02:19 AM #1Junior Guru Wannabe
- 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.
-
11-07-2009, 03:05 AM #2Junior Guru Wannabe
- Join Date
- Nov 2009
- Location
- United States
- Posts
- 30
so why do I get the internal server error?
-
11-07-2009, 09:52 AM #3Web Hosting Master
- Join Date
- May 2009
- Posts
- 766
Try this:
PHP Code:use CGI::Carp qw/fatalsToBrowser/;
Matt
-
11-07-2009, 01:09 PM #4Web Hosting Master
- Join Date
- Nov 2001
- Location
- Vancouver
- Posts
- 2,422
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
-
Email Errors - 550 Callback errors
By truenegative in forum Hosting Security and TechnologyReplies: 5Last Post: 02-15-2007, 10:43 AM -
MySpace Site Scripts - Turnkeys, train scripts, generators, and more - 50% OFF!!!
By webbist101 in forum Other Offers & RequestsReplies: 1Last Post: 05-26-2006, 09:18 PM -
PHP5 scripts for photogallery, e-commerce, bulletin board scripts? How?
By Junkie in forum Web Design and ContentReplies: 6Last Post: 03-11-2006, 11:50 PM -
50% Off All PHP Scripts (WHT only): Hosting Directory Script, Order Form Scripts +
By adscas77 in forum Other Offers & RequestsReplies: 10Last Post: 05-27-2005, 11:44 AM -
Daily /scripts/upcp errors...
By JCJiffy in forum Hosting Security and TechnologyReplies: 1Last Post: 08-21-2004, 07:07 PM