Page 1 of 1

centos 7 problems installing no /etc/init.d/httpd

Posted: Sat Dec 23, 2017 3:45 am
by JoshuaSm48
I have just installed CentOS 7 on a machine to start testing with nagios. I have been following the install documentation but have run into a problem.

After runnig all the makes and configure scripts I try run this command/etc/init.d/httpd but i get the following error: -bash: /etc/init.d/httpd: No such file or directory I tried continuing just having httpd running but when I try to access the web inter face I cannot connect.

After going to init.d using cd /etc/init.d/ I see that there is no httpd file.

As a result of the above I cannot run the chkconfig --add httpd and chkconfig --level 35 httpd on commands I get the following errors: error reading information on service httpd: No such file or directory and Note: Forwarding request to 'systemctl enable httpd.service'. respectively

Re: centos 7 problems installing no /etc/init.d/httpd

Posted: Wed Dec 27, 2017 11:01 am
by kyang
Could you tell us which documentation you followed for installing Nagios?

Was it this one?
https://support.nagios.com/kb/article/n ... tml#CentOS

Is this the latest version of Nagios Core?

Could you try running these commands?

Code: Select all

systemctl enable httpd.service

make install-webconf

systemctl start httpd.service
Or have you done this already?