Unable to start Apache Server on CentOS 7.5
Posted: 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.
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.