Hey,

as I see the cgi rights aren't a problem right now.
One Issue am wondering about:

In your apache-config you define the cgi-bin path as
<Directory "/usr/apache/icinga/cgi-bin">

Your cgi's are in the sbin directory right now,
there for I would suggest that your apache-directory directive should
point to: "/usr/apache/icinga/icinga_baseDir/sbin"

How about the Directory directive for the normal web-content?

My Apache-conf for icinga looks like that:
(I removed the authentification parts)

ScriptAlias /icinga/cgi-bin "/usr/local/icinga/sbin"

<Directory "/usr/local/icinga/sbin">
   Options ExecCGI
   AllowOverride None
   Order allow,deny
   Allow from all
</Directory>

Alias /icinga "/usr/local/icinga/share/"

<Directory "/usr/local/icinga/share/">
   Options None
   AllowOverride None
   Order allow,deny
   Allow from all
</Directory>

If you change the path in the <Directory > parts, this should work for you.
After that you could add some kind of authentification ...

Best regards,
Marco


Von: Huber, Melissa [mailto:[email protected]]
Gesendet: Mittwoch, 17. November 2010 23:02
An: [email protected]
Betreff: Re: [icinga-users] Getting icinga going with apache

Hey guys,

Ok - I tried running the getenforce/setenforce 0 commands and restarted icinga 
and apache and got the same result.

Apache is installed in /usr/apache/icinga and I installed icinga in 
/usr/apache/icinga/icinga_baseDir.  Afterwards, I ran a chown -R icinga:icinga 
/usr/apache/icinga so that I shouldn't have any perms issues, but you never 
know.  I'll give you a couple directories after the apache code posting.

So, here's some apache code for ya:

I'm setting apache's user/group for this instance as icinga:

User icinga
Group icinga

I comment out Options Indexes FollowSymLinks as it shouldn't be needed I don't 
think:

#Options Indexes FollowSymLinks

AllowOverride options are set to FileInfo Options just in case:

AllowOverride FileInfo Options

I have php installed and Directory Index Line is index.html and index.php:

<IfModule dir_module>

DirectoryIndex index.html index.php

</IfModule>

Here's the directory definition for cgi:

<Directory "/usr/apache/icinga/cgi-bin">

#AllowOverride None

#Options None

#Order allow,deny

#Allow from all

AllowOverride AuthConfig

Options ExecCGI

Order allow,deny

Allow from all

</Directory>

I added the php types:

AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

Included the icinga.conf and gave direction to php.ini:

Include conf/icinga.conf
PHPIniDir /usr/php/icinga/etc

That's about all the changes I made versus a normal httpd.conf file aside from 
Listen IP & ServerName, etc.

The icinga.conf is the auto-gen'd icinga.conf file right now.  I can send that 
if you like as well.

Here's some directory permissions for you:

/usr/apache/icinga/icinga_baseDir:
drwxrwxr-x 2 icinga icinga 4096 Nov 17 09:43 bin
drwxrwxr-x 3 icinga icinga 4096 Nov 17 15:48 etc
drwxrwxr-x 2 icinga icinga 4096 Nov 17 09:43 libexec
drwxrwxr-x 2 icinga icinga 4096 Nov 17 09:43 sbin
drwxrwxr-x 10 icinga icinga 4096 Nov 17 09:43 share
drwxrwxr-x 5 icinga icinga 4096 Nov 17 16:39 var

/usr/apache/icinga/icinga_baseDir/sbin:
-rwxrwxr-x 1 icinga icinga 250572 Nov 17 09:43 avail.cgi
-rwxrwxr-x 1 icinga icinga 239960 Nov 17 09:43 cmd.cgi
-rwxrwxr-x 1 icinga icinga 221836 Nov 17 09:43 config.cgi
-rwxrwxr-x 1 icinga icinga 271020 Nov 17 09:43 extinfo.cgi
-rwxrwxr-x 1 icinga icinga 216940 Nov 17 09:43 histogram.cgi
-rwxrwxr-x 1 icinga icinga 198732 Nov 17 09:43 history.cgi
-rwxrwxr-x 1 icinga icinga 196684 Nov 17 09:43 notifications.cgi
-rwxrwxr-x 1 icinga icinga 193164 Nov 17 09:43 outages.cgi
-rwxrwxr-x 1 icinga icinga 194284 Nov 17 09:43 showlog.cgi
-rwxrwxr-x 1 icinga icinga 266924 Nov 17 09:43 status.cgi
-rwxrwxr-x 1 icinga icinga 209036 Nov 17 09:43 statusmap.cgi
-rwxrwxr-x 1 icinga icinga 209580 Nov 17 09:43 statuswml.cgi
-rwxrwxr-x 1 icinga icinga 197292 Nov 17 09:43 statuswrl.cgi
-rwxrwxr-x 1 icinga icinga 217804 Nov 17 09:43 summary.cgi
-rwxrwxr-x 1 icinga icinga 207148 Nov 17 09:43 tac.cgi
-rwxrwxr-x 1 icinga icinga 217964 Nov 17 09:43 trends.cgi

I can give you guys more if you want - I really appreciate the help!

Missy
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to