Hi guys,
I know there are many existing threads on this, but i am not having any luck, a whole week flat out on this i cant figure it out. I was advised in another forum to try here.
I can't get Apache to execute a CGI script from anywhere except /var/ Below is parts of the httpd.conf
I can execute from but not from
I can load and execute html files from anywhere i configure it to look. But CGI can only execute from /var/
Apart from this file are there anyother files i need to look at. I have been through the includes conf.d/* and nothing there that could be overriding it.
I get 500 error, its seeing the script because if i rm test.cgi i get file not found. I've done 755 on the whole directory. The error log shows:
Tue Feb 22 11:45:12 2005] [error] [client 169.254.100.125] (13)Permission denied: exec of '/usr/lib/nagios/cgi/test.cgi' failed
[Tue Feb 22 11:45:12 2005] [error] [client 169.254.100.125] Premature end of script headers: test.cgi
Anyone please.. this is driving me mad....
Thanks in advance
Ash
Include conf.d/*.conf
User apache
Group apache
DocumentRoot "/var/<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/var/ Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
DirectoryIndex index.html index.html.var
ScriptAlias /cgi-bin/ "/var/<Directory "/var/ AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /nagios/cgi-bin/ "/usr/lib/nagios/cgi/"
<Directory "/usr/lib/nagios/cgi/">
AllowOverride None
Options ExecCGI
order deny,allow
allow from all
</Directory>
AddHandler cgi-script .cgi .pl
I know there are many existing threads on this, but i am not having any luck, a whole week flat out on this i cant figure it out. I was advised in another forum to try here.
I can't get Apache to execute a CGI script from anywhere except /var/ Below is parts of the httpd.conf
I can execute from but not from
I can load and execute html files from anywhere i configure it to look. But CGI can only execute from /var/
Apart from this file are there anyother files i need to look at. I have been through the includes conf.d/* and nothing there that could be overriding it.
I get 500 error, its seeing the script because if i rm test.cgi i get file not found. I've done 755 on the whole directory. The error log shows:
Tue Feb 22 11:45:12 2005] [error] [client 169.254.100.125] (13)Permission denied: exec of '/usr/lib/nagios/cgi/test.cgi' failed
[Tue Feb 22 11:45:12 2005] [error] [client 169.254.100.125] Premature end of script headers: test.cgi
Anyone please.. this is driving me mad....
Thanks in advance
Ash
Include conf.d/*.conf
User apache
Group apache
DocumentRoot "/var/<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/var/ Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
DirectoryIndex index.html index.html.var
ScriptAlias /cgi-bin/ "/var/<Directory "/var/ AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /nagios/cgi-bin/ "/usr/lib/nagios/cgi/"
<Directory "/usr/lib/nagios/cgi/">
AllowOverride None
Options ExecCGI
order deny,allow
allow from all
</Directory>
AddHandler cgi-script .cgi .pl