Page 1 of 1

Unable to start Apache Server on CentOS 7.5

Posted: 2018/06/19 11:28:00
by rajkumar
Hi All,

I have followed the steps in following link to setup a http server on my machine:
https://devops.profitbricks.com/tutoria ... -centos-7/

I keep getting this error and I am not able to solve this.

[root@example ~]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2018-06-19 04:07:04 PDT; 34s ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 17902 (code=exited, status=1/FAILURE)

Jun 19 04:07:04 example.com systemd[1]: Starting The Apache HTTP Server...
Jun 19 04:07:04 example.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jun 19 04:07:04 example.com kill[17917]: kill: cannot find process ""
Jun 19 04:07:04 example.com systemd[1]: httpd.service: control process exited, code=exited status=1
Jun 19 04:07:04 example.com systemd[1]: Failed to start The Apache HTTP Server.
Jun 19 04:07:04 example.com systemd[1]: Unit httpd.service entered failed state.
Jun 19 04:07:04 example.com systemd[1]: httpd.service failed.

[root@example ~]#

Can anyone please help me in solving this issue? Thanks

NOTE:
1. I have executed yum -y update before setting up the apache server.
2. Since I followed steps from different sites, I removed httpd(using yum -y remove httpd) before following steps in above mentioned link.
3. I am using CentOS 7.5 with 4.11.12 kernel.

Re: Unable to start Apache Server on CentOS 7.5

Posted: 2018/06/19 12:13:17
by stevemowbray
If you really followed that tutorial, the first thing you should do is reenable selinux.

Then look at the apache logs in /var/log/httpd to find out what is the problem with your configuration.

Re: Unable to start Apache Server on CentOS 7.5

Posted: 2018/06/19 12:19:34
by TrevorH
3. I am using CentOS 7.5 with 4.11.12 kernel.
Why have you changed our kernel for a different one? And why is it such a backlevel one - 4.11.12 is not an LTS kernel and is nearly one year old so is lacking the necessary fixes for things like Meltdown/Spectre 1/2/3 as well as many other problems in the last year. The distro kernel, despite having what appears to be a lower version number (higher is better, right? No), will have all these problems addressed.

Re: Unable to start Apache Server on CentOS 7.5

Posted: 2018/06/21 07:28:22
by rajkumar
Hi All,

Thanks for helping me out. Got it working by rebooting the system.