Unable to start Apache Server on CentOS 7.5

Issues related to configuring your network
Post Reply
rajkumar
Posts: 2
Joined: 2018/06/19 11:16:16

Unable to start Apache Server on CentOS 7.5

Post by rajkumar » 2018/06/19 11:28:00

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.

stevemowbray
Posts: 519
Joined: 2012/06/26 14:20:47

Re: Unable to start Apache Server on CentOS 7.5

Post by stevemowbray » 2018/06/19 12:13:17

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.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Unable to start Apache Server on CentOS 7.5

Post by TrevorH » 2018/06/19 12:19:34

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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

rajkumar
Posts: 2
Joined: 2018/06/19 11:16:16

Re: Unable to start Apache Server on CentOS 7.5

Post by rajkumar » 2018/06/21 07:28:22

Hi All,

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

Post Reply