Report this

What is the reason for this report?

Apache Server isn't starting on Centos 7

Posted on September 29, 2017

Hi, I’m trying to install Phabricator and I’m getting a problem when I run service httpd start:

[root@Phabricator phabricator]# service httpd start
Redirecting to /bin/systemctl start httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

Log:

[root@Phabricator phabricator]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2017-09-29 20:34:31 UTC; 12s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 2574 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 2573 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 2573 (code=exited, status=1/FAILURE)

Sep 29 20:34:31 Phabricator httpd[2573]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Sep 29 20:34:31 Phabricator httpd[2573]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Sep 29 20:34:31 Phabricator httpd[2573]: no listening sockets available, shutting down
Sep 29 20:34:31 Phabricator httpd[2573]: AH00015: Unable to open logs
Sep 29 20:34:31 Phabricator systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Sep 29 20:34:31 Phabricator kill[2574]: kill: cannot find process ""
Sep 29 20:34:31 Phabricator systemd[1]: httpd.service: control process exited, code=exited status=1
Sep 29 20:34:31 Phabricator systemd[1]: Failed to start The Apache HTTP Server.
Sep 29 20:34:31 Phabricator systemd[1]: Unit httpd.service entered failed state.
Sep 29 20:34:31 Phabricator systemd[1]: httpd.service failed.

Thanks!

  • Ben


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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Couple of ideas

  1. Check what’s running on port 80 with netstat -tlpn
  2. type apachectl configtest and see what output you get

same problem :(

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.