side.php does not display properly on Ubuntu16

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
cbbs70a
Posts: 11
Joined: Sat May 17, 2014 10:26 am

side.php does not display properly on Ubuntu16

Post by cbbs70a »

All;
I've installed Nagios 4.3.2 on an Ubuntu 16 server but I have a problem with the display of the menu with the side.php file. Instead of displaying the menu, its displaying the raw html. As a test, I've also installed Nagios on an Ubuntu 14 server and it seems to display just fine. Has anyone seen this before? Any insight at all would be greatly appreciated. I'm uploading a screenshot of the left-side menu.
Thanks;
Frank
Attachments
Nagios4-side.php.jpg
bolson

Re: side.php does not display properly on Ubuntu16

Post by bolson »

Hello cbbs70a,

Are you sure you executed all of these steps from the source install document?
Nagios Core Installation
Extract the package contents:
tar zxvf nagios-4.2.0.tar.gz
tar zxvf nagios-plugins-2.1.2.tar.gz
Change to the new Nagios directory and install the packages:
cd nagios-4.2.0
For RHEL/CentOS users:
./configure --with-command-group=nagcmd
For Ubuntu users:
./configure --with-command-group=nagcmd -–with-mail=/usr/bin/sendmail
--with-httpd-conf=/etc/apache2/
All systems:
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf
cbbs70a
Posts: 11
Joined: Sat May 17, 2014 10:26 am

Re: side.php does not display properly on Ubuntu16

Post by cbbs70a »

Hello;
Thank you for your quick response. I have several Nagios servers up and running and I am confident that I correctly setup and installed the Ubuntu 16 server. I have an Ubuntu 14 and several CentOS servers up and running without incident. Could it be a PHP issue?
Thanks;
Frank
bolson

Re: side.php does not display properly on Ubuntu16

Post by bolson »

Yes, this is most likely a php issue. Please post the result of:

Code: Select all

php --version
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: side.php does not display properly on Ubuntu16

Post by scottwilkerson »

I followed the step by step from here and it worked successfully.

What I realized was if I was missing the following package I got the same results as you...

Run the following:

Code: Select all

apt-get install libapache2-mod-php7.0
And restart apache2 and you should be set!
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
cbbs70a
Posts: 11
Joined: Sat May 17, 2014 10:26 am

Re: side.php does not display properly on Ubuntu16

Post by cbbs70a »

Yep, that was it. I can't thank you enough.
Regards;
Frank
bolson

Re: side.php does not display properly on Ubuntu16

Post by bolson »

Closing this topic as resolved.
Locked