D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG]Re: Apache web server errors

 

Something else is running on the http port, so apache can't run.



Sent from my Galaxy


-------- Original message --------
From: zleap via list <list@xxxxxxxxxxxxx>
Date: 22/11/2026 12:26 (GMT+00:00)
To: List <list@xxxxxxxxxxxxx>
Cc: zleap <zleap@xxxxxxxxxxx>
Subject: [LUG]Apache web server errors

Hi

I am undertaking the Linux Foundation: Introduction to Linux course. 

One of the hands on labs is to check the status of an 'installed' apache2 webserver.

I am using a Raspberry Pi to login and experiment with some of this,rather than doing things on a desktop or laptop.  This solution is fine, however

I had to install apache2 manually

sudo apt install apache2.  this seemed to install fine, on Debian 13 (Trixie) running on the pi.

However upon trying to start this I get the following

sudo  systemctl start apache2
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.

checking the status


sudo  systemctl status apache2
× apache2.service - The Apache HTTP Server
     Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Sun 2026-11-22 12:12:04 GMT; 1min 47s ago
 Invocation: 9f38df4855f94f92a7a775aa0525b844
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 1227 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
        CPU: 60ms

Nov 22 12:12:04 RaspberryPi4-server systemd[1]: Starting apache2.service - The Apache HTTP Server...
Nov 22 12:12:04 RaspberryPi4-server apachectl[1229]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, usi>
Nov 22 12:12:04 RaspberryPi4-server apachectl[1229]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Nov 22 12:12:04 RaspberryPi4-server apachectl[1229]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Nov 22 12:12:04 RaspberryPi4-server apachectl[1229]: no listening sockets available, shutting down
Nov 22 12:12:04 RaspberryPi4-server apachectl[1229]: AH00015: Unable to open logs
Nov 22 12:12:04 RaspberryPi4-server systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Nov 22 12:12:04 RaspberryPi4-server systemd[1]: apache2.service: Failed with result 'exit-code'.
Nov 22 12:12:04 RaspberryPi4-server systemd[1]: Failed to start apache2.service - The Apache HTTP Server.
lines 1-17/17 (END)


Which given it is not running would be expected,  can some one help me interpret the above messages please

 I have not done anything with any config files,  as usually just installing apache will get it running enough to display a message in a browser pointing at the ip address of server.

Thanks

Paul


--


--
-- 
The Mailing List for the Devon & Cornwall LUG
FAQ: https://www.dcglug.org.uk/faq/