Apache Server isn't starting on Centos 7

September 29, 2017 128 views
Apache Networking CentOS

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
2 Answers

Couple of ideas
1) Check what's running on port 80 with netstat -tlpn
2) type apachectl configtest and see what output you get

Have another answer? Share your knowledge.