By djchris2747
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.