Unable to exec perl cgi's from url

Made this worth 250 points since I need an answer soon.

I have linux mandrake 6.1 and all i'm trying to do is have a perl cgi execute when I access it from a url.

e.g.:  http://mywebserver/test.pl

I want it to return the html output from that perl script.

instead, what i get is:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost 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.

the perl script executes fine from the linux prompt.  any ideas?  

Who is Participating?
babblegeek_Connect With a Mentor Commented:
If you want to be able to execute this outside of the cgi-bin directory, you must make a change to your (I'm guessing) Apache configuration.

Make sure the ExecCGI option is turned on in the directory where your CGI file is. This option is (typically) in access.conf.

Also make sure that Apache is loading the cgi handler. Look for an AddHandler line in (typically) srm.conf.

Finally, if you make changes to these files, you must restart Apache. Modern versions use:

apachectl restart
check the error logs and access logs for
the http server.

You will get an idea of what is failing.

Logs should be in
/home/httpd/logs/*access* and

Also make sure you are looking for the script in the
cgi-bin directory: for eg.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.