Page 1 of 1

side.php does not display properly on Ubuntu16

Posted: Mon Aug 21, 2017 11:18 am
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

Re: side.php does not display properly on Ubuntu16

Posted: Mon Aug 21, 2017 2:20 pm
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

Re: side.php does not display properly on Ubuntu16

Posted: Tue Aug 22, 2017 10:29 am
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

Re: side.php does not display properly on Ubuntu16

Posted: Tue Aug 22, 2017 11:24 am
by bolson
Yes, this is most likely a php issue. Please post the result of:

Code: Select all

php --version

Re: side.php does not display properly on Ubuntu16

Posted: Tue Aug 22, 2017 12:05 pm
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!

Re: side.php does not display properly on Ubuntu16

Posted: Thu Aug 24, 2017 11:48 am
by cbbs70a
Yep, that was it. I can't thank you enough.
Regards;
Frank

Re: side.php does not display properly on Ubuntu16

Posted: Thu Aug 24, 2017 11:59 am
by bolson
Closing this topic as resolved.