I installed Apache using this script https://gist.github.com/Benedikt1992/e88c2114fee15422a4eb

The system is a freshly installed CentOS 6.7 minimal system.

After installation I can find the apache in /usr/local/apache2/ but I can't start the apache with service or enable start on boot with chkconfig. What am I missing?

  • 1
    Is there a problem with CentOS packages?
    – Braiam
    Aug 25, 2015 at 16:39
  • There is no Apache 2.4 in the default packages. With EPEL (unix.stackexchange.com/questions/138899/…) it is not compiled with --enable-so Aug 25, 2015 at 16:53
  • Did it not install an init script?
    – Jeff Schaller
    Aug 25, 2015 at 16:56
  • within /etc/init.d is no init script for apache (or httpd) Aug 25, 2015 at 16:58
  • and on /usr/local/etc?
    – Braiam
    Aug 25, 2015 at 17:01

2 Answers 2


Usually when I install apache on centOS, it gets installed in /etc/httpd/conf/ check there, otherwise do a find / -name httpd or find / -name apache. Also, if I want to start it now you start/stop it with sudo systemctl httpd start/stop or httpd -k start or apachectl start

  • with apachectl I can start the server. Nevertheless I can't use chkconfig or service Aug 25, 2015 at 21:04
  • well, you don't need chkconfig or service because they are deprecated now. You should use systemctl instead.
    – VaTo
    Aug 25, 2015 at 21:07
  • 1
    I use centos 6. There is no systemd Aug 26, 2015 at 5:21

Apache 2.4 doesn't use the init scripts. As Saul Ortega said the apachectl script can be used to start the server. It can also be used as a standard SysV init script. Further informations can be found in the apache doc http://httpd.apache.org/docs/2.4/en/invoking.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.