Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Paul Winkler on October 16, 2002, 03:01:18 PM
-
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request."
This is the message we get when we try to run a cgi script from an ibay
We have cgi scripts enabled in server manager but it don't work, what else must we do
We also can't seem to get them working from the 'primary' folder.
Please help.
-
did you make the cgi file executable?
chmod 755 cgi_script_name
-
Did you enable dynamic script execution (PHP/CGI) when you created the IBAY? That's an option.
-
Did you try it with a simple cgi script ? e.g.:
#!/usr/bin/perl
#===============================
# Testing CGI script installation
# Copyright 1999, Free Perl Code
# Created 08/15/99
#===============================
# This script is designed to test
# CGI script installation
#===============================
print "Content-type: text/plain", "\n\n";
print "Hello World!";
if that works and yours doesn't then check the syntax of your cgi script from the command line.
>perl -c - will check the context is ok.
-
Throw this at the head of your script, but after the perl shebang.
use CGI::Carp qw(fatalsToBrowser)
It will direct commandline type errors to the browser instead of just reporting the useless Error 500 message.
Greg
-
look at the httpd error log for your server. this might give some insight why the script is failing.
for instance, I was able to figure out that the script I was trying required a higher version of glibc.
--phil
-
Yes we did, before we even tried running the scripts
we have also made the script executable
"chmod 755 cgi_script_name"
any other ideas pls help!
Regards