Page 2 of 2

Re: Nagios apache web configuration

Posted: Wed Feb 25, 2015 3:27 pm
by jdalrymple
It could very well be, did you install php? If so how did you do it?

Code: Select all

[jdalrymple@localhost ~] php -v
PHP 5.4.16 (cli) (built: Oct 31 2014 12:59:36)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

Re: Nagios apache web configuration

Posted: Wed Feb 25, 2015 3:38 pm
by nagiosuser22
I think the issue may be that I don't have php installed on my system. The command:

rpm -qa | grep -i php

returns nothing. What rpm packages should I have installed for php?

Re: Nagios apache web configuration

Posted: Wed Feb 25, 2015 3:44 pm
by jdalrymple

Code: Select all

yum install php
Should get you where you need to go.

You can also delete the .htaccess file we created.

Re: Nagios apache web configuration

Posted: Wed Feb 25, 2015 3:49 pm
by nagiosuser22
Thank you! I finally got it to work. I now have the following php rpms installed:

# rpm -qa | grep php
php-5.3.3-26.el6.x86_64
php-cli-5.3.3-26.el6.x86_64
php-common-5.3.3-26.el6.x86_64