Click to See Complete Forum and Search --> : Stupid Question on Apache


linuxluis
05-03-2001, 05:33 PM
Hello all, this must be the most stupid question I have ever posted. But my mind is blank at this point just plan forgot..

I am having trouble setting up the cgi-bin in apache.

I have written a perl script place it in the directory went to my browser and I get this error.
Internal Server Error

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

Please contact the server administrator, ha@ha.com 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.


Apache/1.3.19 Server at local Port 80


I thought I wrote the script wrong so i did a basic script.

!#/usr/bin/perl

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

But I keep on getting the same error.

So does anyone have a clue on what's going on. I check my httpd.conf file but every looks the same plus I gave the file full permission chmood 777 test.pl


Thank
Tux :cool:

bdl
05-03-2001, 08:52 PM
The first thing I can see wrong with your script is the head. Unless you mistyped in the forum post, the first line should be:

#!/usr/bin/perl

You've got the hash and exclamation reversed.

Other than that, you might post a little more on your apache setup, whether you're running mod_perl, verify exactly where 'perl' is on your system, e.g. /usr/local/bin/perl, etc.