So about a week back, i think i was doing an apt upgrade
and then got some prompts to autoremove some stuff which i did and my apache started acting up.
I have tried lots of solutions online but nothing is working.
sudo service apache2 start
returns the error below.
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
Then
sudo service apache2 status
returns the errors below
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2021-10-01 08:08:06 EAT; 2min 1s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 6759 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Oct 01 08:08:06 nm-linux apachectl[6762]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.33.23.240. Set the 'ServerName' directive globa>
Oct 01 08:08:06 nm-linux apachectl[6762]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Oct 01 08:08:06 nm-linux apachectl[6762]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Oct 01 08:08:06 nm-linux apachectl[6762]: no listening sockets available, shutting down
Oct 01 08:08:06 nm-linux apachectl[6762]: AH00015: Unable to open logs
Oct 01 08:08:06 nm-linux apachectl[6759]: Action 'start' failed.
Oct 01 08:08:06 nm-linux apachectl[6759]: The Apache error log may have more information.
Oct 01 08:08:06 nm-linux systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Oct 01 08:08:06 nm-linux systemd[1]: apache2.service: Failed with result 'exit-code'.
Oct 01 08:08:06 nm-linux systemd[1]: Failed to start The Apache HTTP Server.
lines 1-16/16 (END)
Currently my phpadmin
doesnt work due to continous reinstallations to purge the apache
installation. So localhost/phpmyadmin
just doesnt load.
My pgadmin
is installed and it works very well.
I really need help on this as i have wasted a lot of time searching everywhere for a solution.
Many thanks in advance.