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
side.php does not display properly on Ubuntu16
Re: side.php does not display properly on Ubuntu16
Hello cbbs70a,
Are you sure you executed all of these steps from the source install document?
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
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
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
Yes, this is most likely a php issue. Please post the result of:
Code: Select all
php --version
-
- 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
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:
And restart apache2 and you should be set!
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
Re: side.php does not display properly on Ubuntu16
Yep, that was it. I can't thank you enough.
Regards;
Frank
Regards;
Frank