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.
Unable to start Apache Server on CentOS 7.5
-
- Posts: 519
- Joined: 2012/06/26 14:20:47
Re: Unable to start Apache Server on CentOS 7.5
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.
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
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.3. I am using CentOS 7.5 with 4.11.12 kernel.
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
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
Re: Unable to start Apache Server on CentOS 7.5
Hi All,
Thanks for helping me out. Got it working by rebooting the system.
Thanks for helping me out. Got it working by rebooting the system.