PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Apache: Probleme mit CGI's



superuserroot
15.04.04, 11:27
Also Linux ist für mich ziemliches Neuland, ich möchte ein Software abrufbar über den Apache machen. Dieso Sofware beinhaltet auch CGI's. Wenn ich die nun in meinem Broweser aufrufen möchte, erscheint eine Fehlermeldung:Whoops!


Error: Could not open CGI config file '/usr/local/nagios/etc/cgi.cfg' for reading!


Here are some things you should check in order to resolve this error:


Make sure you've installed a CGI config file in its proper location. See the error message about for details on where the CGI is expecting to find the configuration file. A sample CGI configuration file (named cgi.cfg) can be found in the sample-config/ subdirectory of the Nagios source code distribution.
Make sure the user your web server is running as has permission to read the CGI config file.

Make sure you read the documentation on installing and configuring Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org.

Die cgi.cfg habe ich schon in den entsprechenden Ordner gezogen.
Ich glaube eher, dass dem Apache noch ein Paket fehlt, das dieser braucht zum überetzen.

Ich verwende SuSE Linux 9.0

jpfote
15.04.04, 11:59
Das ist Nagios und vor dem selben Problem stand ich auch. Hast Du es als *.rpm installiert oder selbst kompilliert?

Bei der rpm-INstallations legt SuSE verkorkste .htaccess an. Den Eintrag musst Du per Hand in der httpd.conf ändern. Desweiteren müssen die Pfade zum cgi-dir in der nagios.conf stimmen. Trag am besten die htacces aus der Anleitung ein. Diese findest Du auf deutsch hier:

http://nagios.sourceforge.net/download/contrib/documentation/german/1_0/

Viel Spaß :-)

jpfote
15.04.04, 12:00
Ah, sorry hab mich verlesen, check mal die Rechte und der User, dem die dateien gehören. Die müssen dem nagiosuser gehören :)

Unter SuSE 8.2 liegen bei einer Nagios rpm-Installation die cfg's in /etc/nagios/

Habs eben mal probiert. Du musst ggf. die Pfade in den cfg's noch anpassen, falls Sie dir jemand zugeschickt hat.