I have followed below mentioned steps for NagiosQL installation. Please have a look at this and let me know.
What was went wrong.?
1-Download nagiosql_320.tar.gz
2-cp nagiosql_320.tar.gz /var/www
3-sudo chown -R www-data:www-data nagiosql32
4-sudo vim /etc/apache2/sites-available/nagiosql32.conf
5-add the following lines
Alias /nagiosql32 /var/www/nagiosql32/
<Directory /var/www/nagiosql32/>
Options None
Order allow,deny
allow from all
</Directory>
Save and exit the file
6-Enable NagioSQL website using the following command
sudo a2ensite nagiosql32
7-To activate the new configuration, you need to run:
sudo service apache2 reload
8-Now you can access the NgiosQL web interface using the following URL
http://serverip/nagiosql32
I hope it will help us to debug the issue and now I am facing one more problem after performing these steps I am not able to start/restart my apache service also. getting this error.
**************************************************************
ravi@ravi-VirtualBox:~$ /etc/init.d/apache2 status
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Thu 2018-05-10 14:05:31 IST; 24min ago
Docs: man:systemd-sysv-generator(8)
Process: 1846 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
May 10 14:05:30 ravi-VirtualBox apache2[1846]: Output of config test was:
May 10 14:05:30 ravi-VirtualBox apache2[1846]: AH00526: Syntax error on line 1 of /etc/apache2/sites-enabled/nagiosql32.conf:
May 10 14:05:30 ravi-VirtualBox apache2[1846]: Alias takes two arguments, a fakename and a realname
May 10 14:05:30 ravi-VirtualBox apache2[1846]: Action 'configtest' failed.
May 10 14:05:30 ravi-VirtualBox apache2[1846]: The Apache error log may have more information.
May 10 14:05:31 ravi-VirtualBox systemd[1]: apache2.service: Control process exited, code=exited status=1
May 10 14:05:31 ravi-VirtualBox systemd[1]: Failed to start LSB: Apache2 web server.
May 10 14:05:31 ravi-VirtualBox systemd[1]: apache2.service: Unit entered failed state.
May 10 14:05:31 ravi-VirtualBox systemd[1]: apache2.service: Failed with result 'exit-code'.
May 10 14:11:50 ravi-VirtualBox systemd[1]: Stopped LSB: Apache2 web server.
********************************************************************************************
ravi@ravi-VirtualBox:~$ /etc/init.d/apache2 start
[....] Starting apache2 (via systemctl): apache2.serviceJob for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
failed!