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?  

thanks!
dave
LVL 1
davekoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

chintuCommented:
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
/home/httpd/logs/*error*

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

http://webserver/cgi-bin/script.pl
0
babblegeek_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
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.