Question
Apache isn´t work
I dont know why my apache isnt work in digitalocean… see resuls:
root@acionista:~# systemctl status apache2.service
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Thu 2019-07-25 14:01:18 UTC; 6s ago
Process: 11632 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Jul 25 14:01:18 acionista apachectl[11632]: AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. S
Jul 25 14:01:18 acionista apachectl[11632]: (98)Address already in use: AH00072: makesock: could not bind to address [::]:80
Jul 25 14:01:18 acionista apachectl[11632]: (98)Address already in use: AH00072: makesock: could not bind to address 0.0.0.0:80
Jul 25 14:01:18 acionista apachectl[11632]: no listening sockets available, shutting down
Jul 25 14:01:18 acionista apachectl[11632]: AH00015: Unable to open logs
Jul 25 14:01:18 acionista apachectl[11632]: Action ‘start’ failed.
Jul 25 14:01:18 acionista apachectl[11632]: The Apache error log may have more information.
Jul 25 14:01:18 acionista systemd[1]: apache2.service: Control process exited, code=exited status=1
Jul 25 14:01:18 acionista systemd[1]: apache2.service: Failed with result 'exit-code’.
Jul 25 14:01:18 acionista systemd[1]: Failed to start The Apache HTTP Server.
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.
×
Can you share any changes you’ve made to your apache configurations?
Did you change /etc/apache2/sites-available/000-default.conf?
Let us know your virtualhosts?