Internal Server Error when accessing CGI's.

Andreas Ericsson ae at op5.se
Tue Mar 30 10:07:45 CEST 2004


Greg Yuzik wrote:
> Hey,
> 
> I setup Nagios, got most stuff setup, run it as a Daemon, etc, yet when 
> I try to access the CGI scripts from the web interface, I get:
> 
> 
>  Internal Server Error
> 
> The server encountered an internal error or misconfiguration and was 
> unable to complete your request.
> 
The problem is in Apache. Run 'apachectl configtest' and see if you can 
figure it out.
Also, if you have modified the header() function in the cgi-programs, 
things might not work as you expect, since some of the http headers 
there need to be present (as well as the double newlines before the 
actual html).

Also, if you have f**ked up the paths, configtest will work fine but 
apache won't.

> 
> More information about this error may be available in the server error log.
> 

Which means you should check it, since it will provide answers we can't 
give you without them.

> Additionally, a 404 Not Found error was encountered while trying to use 
> an ErrorDocument to handle the request.
> 

Another configuration fault in Apache. This won't be detected with 
configtest either, since it doesn't check to see if files needed are there.

> ------------------------------------------------------------------------
> Apache/1.3.29 Server at www.xstreamhost.com Port 80
> 
> 
> 
> I'm not sure what to do, I've tried tweaking many things, yet it still 
> won't work.
> 
> I've added the Alias to the httpd.conf.  All my paths are default.
> 
> Any ideas?
> 

Check the error log and the configuration. Make sure the alias points to 
the 'share' directory of the nagios installation, and that the cgi-bin 
is marked as a scriptalias.

> --Thanks,
> Greg.
> 

-- 
Mvh / Best Regards
Sourcerer / Andreas Ericsson
OP5 AB
+46 (0)733 709032
andreas.ericsson at op5.se


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list