Report this

What is the reason for this report?

Apache failed to start

Posted on November 21, 2020

Having trouble setting up and starting the Apache server. I’m trying to set up an SSL, but need to fix this first What should I Do?

apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sat 2020-11-21 01:14:08 UTC; 3h 42min ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 200244 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

Nov 21 01:14:08 PlutoSocial apachectl[200262]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppres>
Nov 21 01:14:08 PlutoSocial apachectl[200262]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Nov 21 01:14:08 PlutoSocial apachectl[200262]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Nov 21 01:14:08 PlutoSocial apachectl[200262]: no listening sockets available, shutting down
Nov 21 01:14:08 PlutoSocial apachectl[200262]: AH00015: Unable to open logs
Nov 21 01:14:08 PlutoSocial apachectl[200244]: Action 'start' failed.
Nov 21 01:14:08 PlutoSocial apachectl[200244]: The Apache error log may have more information.
Nov 21 01:14:08 PlutoSocial systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Nov 21 01:14:08 PlutoSocial systemd[1]: apache2.service: Failed with result 'exit-code'.
Nov 21 01:14:08 PlutoSocial systemd[1]: Failed to start The Apache HTTP Server.


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.

Hello, @djchris2747

As the message suggested the address is already in use, e.g port 80 is already in use and the Apache server can not be bind to this port.

You can check what is already using the port using netstat :

netstat -plunta | grep 80

You can then either stop or kill this service if it’s not vital to your sites/applications and start apache again.

Hope that this helps! Regards, Alex

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.