Page 1 of 1

Installation not working

Posted: Sat Oct 05, 2019 10:11 am
by erlendur
Hi,

I have installed Nagios Core on a Raspberry Pi.

I have PHP version: PHP 5.6.40-0+deb8u2 (cli) (built: Mar 31 2019 12:18:11)
I have Nagios Core version: 4.4.3


The main page (http://192.168.1.103/nagios/) shows this text:
Not Found

The requested URL /nagios/< was not found on this server.

The home page (http://192.168.1.103/nagios/main.php) shows this text on top of the page (note that no version appears):

NagiosĀ® Coreā„¢
Version
January 15, 2019
Check for updates
When I click Check for updates I get this page that shows this text:

Nagios Update Check

Update Required

Your installation of Nagios Core <?php echo $this_version; ?> is outdated and should be upgraded. The latest version of Nagios Core is 4.4.5 was released on 2019-08-20.

Download the latest version of Nagios Core
Please take a look into this and advice what might be the problem here.

Best regards, Erlendur

Re: Installation not working

Posted: Mon Oct 07, 2019 10:31 am
by mbellerue
The first thing I would look at is PHP. Right now Apache doesn't seem to be running the pages through the PHP parser, and that's why you see <?php on some of the pages. I'm not sure what the Apache configuration looks like on Raspbian, but there should be a configuration file for the PHP module that tells Apache to use the PHP parser even for regular .html and .htm files.