nagios安装注意点

装了最新版nagios(3.3.1),在装得过程遇到如下问题:

1、nagios.conf的配置信息追加到httpd.conf

安装nagios.conf时,会把文件放在/etc/httpd/conf.d,找半天都没有在我red hat上找这个路径,就自己mkdir了,安装好nagios后,把nagios.conf的内容追加httpd.conf

2、You don’t have permission to access /nagios/ on this server
access_log:

10.13.115.1 - nagiosadmin [26/Jun/2011:13:01:10 +0800] "GET /nagios/side.php HTTP/1.1" 304 -
10.13.115.1 - nagiosadmin [26/Jun/2011:13:01:10 +0800] "GET /nagios/images/sblogo.png HTTP/1.1" 304 -
10.13.115.1 - nagiosadmin [26/Jun/2011:13:01:10 +0800] "GET /nagios/stylesheets/common.css HTTP/1.1" 304 -
10.13.115.1 - nagiosadmin [26/Jun/2011:13:01:10 +0800] "GET /nagios/images/greendot.gif HTTP/1.1" 304 -

error_log:

 [notice] Apache/2.2.19 (Unix) DAV/2 configured -- resuming normal operations
 [error] [client xx.xx.115.1] Directory index forbidden by Options directive: /usr/local/nagios/share/
 [error] [client xx.xx.115.1] Directory index forbidden by Options directive: /usr/local/nagios/share/
 [error] [client xx.xx.115.1] Directory index forbidden by Options directive: /usr/local/nagios/share/
 [error] [client xx.xx.115.1] Directory index forbidden by Options directive: /usr/local/nagios/share/
 [error] [client xx.xx.115.1] Directory index forbidden by Options directive: /usr/local/nagios/share/

php页面无法被apache解析???

解决:
在apache的配置文件httpd.conf修改
第一步:

<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>

改成

<IfModule dir_module>
    DirectoryIndex index.php index.html
</IfModule>

第二步:
增加如下内容,记得装php

LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php .phtml
AddType applicatoin/x-httpd-php-source .phps
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值