I make a GET request to a CGI script and I get a 404 error. However, I am 100% sure that script is present and it has permissions:

-rwxr-xr-x  1 apache apache   6520 Sep  7 03:01 uu_ini_status_audios.pl

The request URL is:

http://mysite.com/cgi-bin/uu_ini_status_audios.pl?tmp_sid=893facacc5dc392ad0f4c91e6a9e8d40&rnd_id=0.12266222834382812

The error I get:

The requested URL /cgi-bin/uu_ini_status_audios.pl was not found on this server.

This use to work for me before, but I think it stopped working after I restarted apache so maybe it means its a configuration I changed??

I checked the error logs for apache and php and nothing useful was found to help me with my problem!

I appreciate any help on this!

link|improve this question

Where is the perl script located? – Pekka Dec 25 '10 at 22:56
Its located in /cgi-bin/ i.e. /var/www/vhosts/mysite.com/httpdocs/cgi-bin – Abs Dec 25 '10 at 23:09
This sounds like an Apache issue, so should be migrated to SuperUser - you are more likely to get best assistance there – DVK Dec 25 '10 at 23:28
@DVK - good point, I need one more user to vote to move this question. – Abs Dec 25 '10 at 23:38
What's in your Apache error logs? What does the Apache configuration look like w/r/t to the /cgi-bin/ path? – larsks Dec 26 '10 at 4:21
feedback

migrated from stackoverflow.com Dec 26 '10 at 3:58

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 1 down vote accepted

You have an error in your Apache configuration.

In your <VirtualHost> section you need

 ScriptAlias /cgi-bin/ "/var/www/vhosts/mysite.com/httpdocs/cgi-bin/"   
link|improve this answer
Thank you so much. I didn't think to look in my httpd.include, the path to CGI was incorrect, I don't know how that happened! – Abs Dec 26 '10 at 14:50
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.