Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

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?

share|improve this question
1  
Is there a problem with CentOS packages? –  Braiam Aug 25 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 –  Benedikt Bock Aug 25 at 16:53
    
Did it not install an init script? –  Jeff Schaller Aug 25 at 16:56
    
within /etc/init.d is no init script for apache (or httpd) –  Benedikt Bock Aug 25 at 16:58
    
and on /usr/local/etc? –  Braiam Aug 25 at 17:01

2 Answers 2

up vote 0 down vote accepted

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

share|improve this answer

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

share|improve this answer
    
with apachectl I can start the server. Nevertheless I can't use chkconfig or service –  Benedikt Bock Aug 25 at 21:04
    
well, you don't need chkconfig or service because they are deprecated now. You should use systemctl instead. –  Saul Ortega Aug 25 at 21:07
1  
I use centos 6. There is no systemd –  Benedikt Bock Aug 26 at 5:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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