How to Solve this error, while making apache Virual Host?

September 4, 2017 1.1k views
Apache CentOS


I have Install the Lamp on my New Server and want to make Apache Virtual Host. First of all, i will install the Updates on Centos 7 bycommand (sudo yum updates). Second, after update the Server, i install the Lamp Stack and continue to make Apache Virtual Host. After making Apache Virtual Host, when i will goes to restart the Apache by command (sudo apachectl restart), a error found.

Error Result:

Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
When i will try to Enter this command on PuTTy, the error found.

Error Result:
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2017-09-04 07:06:47 EDT; 47s ago
Docs: man:httpd(8)
Process: 13017 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 13016 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 13016 (code=exited, status=1/FAILURE)

Sep 04 07:06:47 systemd[1]: Starting The Apache HTTP Server...
Sep 04 07:06:47 systemd[1]: httpd.service: main process exite...E
Sep 04 07:06:47 kill[13017]: kill: cannot find process ""
Sep 04 07:06:47 systemd[1]: httpd.service: control process ex...1
Sep 04 07:06:47 systemd[1]: Failed to start The Apache HTTP S....
Sep 04 07:06:47 systemd[1]: Unit httpd.service entered failed....
Sep 04 07:06:47 systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

How to Solve this issue?

1 Answer

Well without giving us your vhost we can't do much about it.

Have another answer? Share your knowledge.