[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next date => thread ]
Hi AllThanks for the responses, the issue was indeed another process, so I looked up how to find out what is running on a port.
https://linuxvox.com/blog/check-what-is-using-port-80-linux/suggests using the 'ss' command, this revealed that nginx is running on port 80.
As the purpose of the course lab is use the systemctl command to query status, start, stop and enable a process, which in this case is a web server) I figured that doing the same with nginx should be sufficient, so for now I have removed apache2, and will undertake the lab using nginx.
I will raise this on the course forum though, as it seems to assume people have access to specific server setups. so being able to troubleshoot at this stage would be useful.
Paul On 22/11/2026 12:19 pm, zleap via list wrote:
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, howeverI had to install apache2 manuallysudo 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 apache2Job 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 ServerLoaded: 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 agoInvocation: 9f38df4855f94f92a7a775aa0525b844 Docs: https://httpd.apache.org/docs/2.4/Process: 1227 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)CPU: 60msNov 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 pleaseI 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 -- -- Paul Sutton https://zleap.net/
-- The Mailing List for the Devon & Cornwall LUG FAQ: https://www.dcglug.org.uk/faq/