Page 1 of 1
chkconfig --add httpd not working
Posted: Thu Nov 02, 2017 1:29 pm
by sartecat
I am following this instructions from nagios.
https://assets.nagios.com/downloads/nag ... 1497921073
I have successfully reached towards the end where it says to do the following commands:
chkconfig --add nagios
chkconfig --level 35 nagios on
chkconfig --add httpd
chkconfig --level 35 httpd on
Whenever I do the chkconfig --add httpd, I get "error reading information on service httpd: No such file or directory.
How do I get this to work?
Re: chkconfig --add httpd not working
Posted: Thu Nov 02, 2017 4:35 pm
by bolson
Hello sartecat,
Are you sure you ran the make install-init command?
Re: chkconfig --add httpd not working
Posted: Thu Nov 02, 2017 4:38 pm
by sartecat
I think I did. Can I just rerun it again?
Re: chkconfig --add httpd not working
Posted: Thu Nov 02, 2017 8:10 pm
by tacolover101
sartecat wrote:I think I did. Can I just rerun it again?
yes - it should recreate the files.
Re: chkconfig --add httpd not working
Posted: Thu Nov 02, 2017 8:24 pm
by sartecat
I just reentered all of the make install commands. It did not work.
Re: chkconfig --add httpd not working
Posted: Fri Nov 03, 2017 6:34 am
by tacolover101
what is the output of ls -al /etc/init.d/ ? (could vary on OS)
is httpd or apache installed?
Re: chkconfig --add httpd not working
Posted: Fri Nov 03, 2017 2:26 pm
by npolovenko
@sartecat, What OS are you using? Have you installed the modules?
Code: Select all
For RHEL/CentOS users:
yum install -y wget httpd php gcc glibc glibc-common gd gd-devel make net-snmp unzip
For Ubuntu (15.10 and below) users:
sudo apt-get install wget build-essential apache2 php5 php5-gd libgd-dev unzip
For Ubuntu (16.04 and above) users:
sudo apt-get install wget build-essential apache2 php apache2-mod-php7.0 php-gd libgd-dev unzip
Also, if there's a possibility to start installation with a clean system one more again I'd highly recommend using this tutorial instead:
https://support.nagios.com/kb/article/n ... ource.html
This tutorial is the most updated one.