Click to See Complete Forum and Search --> : Anyone successfully running cgi-scripts under rh7.1


optimised
09-18-2001, 04:56 PM
Hello,

I keep getting internal error 505
Error_log
[error] (2) No such file or directory: exec of /home/mydomain/www/cgi-bin/test.cgi
[error] Premature end of script headers
I want to be able to allow cgi-scripts to run in sub directory (eg)
/home/mydomain/www/cgi-bin/


WHAT DO I NEED TO CHANGE IN HTTPD TO FIX?

--This is what I have--
ScriptAlias /cgi-bin/ "/home/mydomain/cgi-bin/"

<Directory "/home/mydomain/www">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<Directory "/home/mydomain/cgi-bin">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>

# Virtual host mydomain
<VirtualHost x.x.x.x>
DocumentRoot /home/mydomain/www
ServerName www.mydomain.com (http://www.mydomain.com)
ScriptAlias /cgi-bin/ "/home/mydomain/cgi-bin/"
ServerSignature email
</VirtualHost>

Produces error(2)
exec of /home/mydomain/cgi-bin/test.cgi

Thanks

slacker_x
09-18-2001, 05:51 PM
I don't know anything about apache config. Just thought I would remind you to make sure that it isn't just an error in your test script that is causing the problem