Question

Apache Server isn't starting on Centos 7

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

Submit an answer


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!

Sign In or Sign Up to Answer

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.

Accepted Answer

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 :(

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

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

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.