Nagios page and info.php display html

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
bbs
Posts: 2
Joined: Wed Feb 26, 2020 6:40 pm

Nagios page and info.php display html

Post 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.
bbs
Posts: 2
Joined: Wed Feb 26, 2020 6:40 pm

Re: Nagios page and info.php display html

Post by bbs »

Fixed. I somehow missed the install of libapache2-mod-php.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios page and info.php display html

Post by lmiltchev »

I am glad your issue has been resolved! I am closing this thread.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked