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.
edited by MattIPv4

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.

×
1 answer

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

Submit an Answer