guru apache i need (perl_test.cgi internal server error)

blackdognove

Registered
Hi people,
i've started apache but have a problem, when test, test-cgi http://127.0.0.1/cgi-bin/test-cgi is all ok, but when test perl_test.cgi…
(i chmod 755 test-cgi and perl_test.cgi)

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] 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.

anyone can help me?
 
can you post the perl_test.cgi you are trying to execute?

the test-cgi is not a perl script. you can tell because
that first line doesn't have the path to perl, but to your shell.

#!/bin/sh (vs.)
#!/usr/bin/perl -T (which works for me under 10.2)

so make sure that line is correct.

And you can check out any errors in your log files at
/var/log/httpd/error_log
They might give you a little more info.

Oh, and don't forget this line at the beginning...

print "Content-type: text/html\n\n";

Lastly, make sure your line endings are Unix, not Mac.
BBEdit Lite can do this.
 
hi xegan i don't think the real problem is the path
i've write the simple script in perl
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<H1>Hello World</H1>\n";
end it work,but the ikonboard test no.
 
Back
Top