Job for httpd.service failed because the control process exited with error code. See “systemctl status httpd.service” and “journalctl -xe” for details.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
IN systemctl status httpd.service showing like this.
● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Thu 2018-01-25 04:57:17 UTC; 37s ago Docs: man:httpd(8) man:apachectl(8) Process: 15234 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE) Process: 27718 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS) Process: 15232 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE) Main PID: 15232 (code=exited, status=1/FAILURE)
Jan 25 04:57:17 centos-s-2vcpu-4gb-blr1-01 systemd[1]: Starting The Apache HTTP Server… Jan 25 04:57:17 centos-s-2vcpu-4gb-blr1-01 httpd[15232]: AH00526: Syntax error on line 126 of /etc/httpd/conf/httpd.conf: Jan 25 04:57:17 centos-s-2vcpu-4gb-blr1-01 httpd[15232]: allow and deny must be followed by ‘from’ Jan 25 04:57:17 centos-s-2vcpu-4gb-blr1-01 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE Jan 25 04:57:17 centos-s-2vcpu-4gb-blr1-01 kill[15234]: kill: cannot find process “” Jan 25 04:57:17 centos-s-2vcpu-4gb-blr1-01 systemd[1]: httpd.service: control process exited, code=exited status=1 Jan 25 04:57:17 centos-s-2vcpu-4gb-blr1-01 systemd[1]: Failed to start The Apache HTTP Server. Jan 25 04:57:17 centos-s-2vcpu-4gb-blr1-01 systemd[1]: Unit httpd.service entered failed state. Jan 25 04:57:17 centos-s-2vcpu-4gb-blr1-01 systemd[1]: httpd.service failed.
IN journalctl -xe showing like this
– Unit session-100.scope has begun starting up. Jan 25 05:01:01 centos-s-2vcpu-4gb-blr1-01 CROND[15333]: (root) CMD (run-parts /etc/cron.hourly) Jan 25 05:01:01 centos-s-2vcpu-4gb-blr1-01 run-parts(/etc/cron.hourly)[15336]: starting 0anacron Jan 25 05:01:01 centos-s-2vcpu-4gb-blr1-01 run-parts(/etc/cron.hourly)[15342]: finished 0anacron Jan 25 05:01:02 centos-s-2vcpu-4gb-blr1-01 sshd[15312]: Failed password for root from 58.218.198.150 port 19470 ssh2 Jan 25 05:01:05 centos-s-2vcpu-4gb-blr1-01 unix_chkpwd[15346]: password check failed for user (root) Jan 25 05:01:05 centos-s-2vcpu-4gb-blr1-01 sshd[15312]: pam_succeed_if(sshd:auth): requirement “uid >= 1000” not met by user “root”
Hello there,
I also want to include great tutorials on Common Apache Errors and How To Troubleshoot Common Apache Errors that you can find really useful if you run into an Apache error and you need some help.
https://www.digitalocean.com/community/tutorial_series/common-apache-errors
https://www.digitalocean.com/community/tutorials/how-to-troubleshoot-common-apache-errors
Also, this question was previously posted and answered by Bobby which you can check here:
Feel free to then share the output of the commands listed in that tutorial.
Hope that this helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.