Page 1 of 1

/etc/init.d/httpd start says file or folder does not exist

Posted: Sat Aug 02, 2014 6:02 am
by lishron
I have Centos 7 trying to install the latest nagios 4.0.7.
I am following this document. http://assets.nagios.com/downloads/nagi ... Source.pdf

I have just deleted the my Oracle Virtual box machine for the third time to try once more but every time i get to the line /etc/init.d/httpd start i get the error (and forgive me i don't have the machine fully installed yet on this attempt) that there is no such file or folder.

If i do ls /etc/init.d i do not see httpd.

I have spent hours looking around the web and the more i try the deeper i dig :) please help.

Re: /etc/init.d/httpd start says file or folder does not exi

Posted: Mon Aug 04, 2014 3:12 pm
by lmiltchev
The steps, outlined in this document work for CentOS 5 and 6, but I don't think they will work for CentOS 7. There are many changes in 7... You will need to start apache by running:

Code: Select all

systemctl start httpd.service
To make sure httpd starts automatically, you will need to run:

Code: Select all

systemctl enable httpd.service
In any case, nagios may or may not work on CentOS 7. We will need to do some testing with CentOS 7 and modify the doc.

Re: /etc/init.d/httpd start says file or folder does not exi

Posted: Mon Aug 04, 2014 4:27 pm
by lishron
Thanks so very much that is very kind and helpful.