Page 1 of 1

Nagios page and info.php display html

Posted: Wed Feb 26, 2020 7:56 pm
by bbs
I installed Nagios 4.4.5 and Apache2 on Raspberry Pi 4 with Raspbian 10. Apache seems to be working fine, and browsing to the server (http://<server ip>) results in the Apache2 Debian Default page. But browsing to nagios (http://<server ip>/nagios) results in a page of html.

<?php
// Allow specifying main window URL for permalinks, etc.
$url = 'main.php';

if ("no" == "yes" && isset($_GET['corewindow'])) {

// The default window url may have been overridden with a permalink...
// Parse the URL and remove permalink option from base.
$a = parse_url($_GET['corewindow']);
......

Browsing to the info.php page (http://<server ip>/into.php results in a page showing the following:

<?php phpinto(): ?>

I followed the installation procedure found here.

https://support.nagios.com/kb/article/n ... l#Raspbian

Any suggestions as to what I missed?
Thanks.

Re: Nagios page and info.php display html

Posted: Thu Feb 27, 2020 11:11 am
by bbs
Fixed. I somehow missed the install of libapache2-mod-php.

Re: Nagios page and info.php display html

Posted: Thu Feb 27, 2020 12:29 pm
by lmiltchev
I am glad your issue has been resolved! I am closing this thread.