Thread: Executing A CGI Script?
Results 1 to 3 of 3
problem while executing perl script through browser Forum: CGI Perl ForumReplies: 0
problem while executing cgi script Forum: CGI Perl ForumReplies: 9
Executing an app and getting the results. Forum: CGI Perl ForumReplies: 0
Executing the PERL CGI Script Forum: CGI Perl ForumReplies: 1
Executing program Forum: HTML ForumReplies: 1
04-24-2006, 06:57 PM #1
Executing A CGI Script?
I have created a script, or I think I have created a script, which will convert temperatures using CGI and PERL. I have put the conv.pl file in my cgi-bin on my webserver, and used chmod and set it to 777, to hopefully allow it to executed. I then put my HTML page in a sub folder called PERL, and tryed to call the page. When I run the script i get the following error.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator 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.
What exactly does this mean in PERL terms. Is this something on the server which is wrong or is this a error which normally occours when the actual script is incorrect? If required i will post my code.
Thanks Again, MoFish.
04-24-2006, 07:50 PM #2
04-28-2006, 09:35 PM #3
Re: Executing A CGI Script?Originally Posted by h4x0rz3d
if it runs with no errors, (you may have to insert values for the variables you are using for the test) then check your httpd.conf to see if .pl scripts are to be executed. i know that with slackware .cgi works out of the box, but not .pl or .shtml.
the 404 you are talking about sounds like you have your httpd.conf pointing to an error document other than the standard response. if that's your intent, check to make sure the path is right. if not, # that line back out.