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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
lishron
Posts: 2
Joined: Sat Aug 02, 2014 5:41 am

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

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
lishron
Posts: 2
Joined: Sat Aug 02, 2014 5:41 am

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

Post by lishron »

Thanks so very much that is very kind and helpful.
Locked