raspberrypi / Raspberry-Pi-OS-64bit

Repository for containing issues on the 64 bit operating system (as distinct from the 32 bit one)
466 stars 21 forks source link

Job for apache2.service failed because the control process exited with error code. #136

Open OlivierVerhoek opened 3 years ago

OlivierVerhoek commented 3 years ago

root@raspberrypi:/home/pi# sudo apt-get install --reinstall apache2 Reading package lists... Done Building dependency tree
Reading state information... Done The following packages were automatically installed and are no longer required: libbluetooth3 libgnutls-dane0 lxplug-volume Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded. Need to get 0 B/251 kB of archives. After this operation, 0 B of additional disk space will be used. (Reading database ... 99524 files and directories currently installed.) Preparing to unpack .../apache2_2.4.38-3+deb10u4_arm64.deb ... Unpacking apache2 (2.4.38-3+deb10u4) over (2.4.38-3+deb10u4) ... Setting up apache2 (2.4.38-3+deb10u4) ... Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details. invoke-rc.d: initscript apache2, action "restart" failed.

● apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2021-02-22 22:40:53 CET; 14ms ago Docs: https://httpd.apache.org/docs/2.4/ Process: 8201 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

Feb 22 22:40:53 raspberrypi systemd[1]: Starting The Apache HTTP Server... Feb 22 22:40:53 raspberrypi apachectl[8201]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 Feb 22 22:40:53 raspberrypi apachectl[8201]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 Feb 22 22:40:53 raspberrypi apachectl[8201]: no listening sockets available, shutting down Feb 22 22:40:53 raspberrypi apachectl[8201]: AH00015: Unable to open logs Feb 22 22:40:53 raspberrypi apachectl[8201]: Action 'start' failed. Feb 22 22:40:53 raspberrypi apachectl[8201]: The Apache error log may have more information. Feb 22 22:40:53 raspberrypi systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE Feb 22 22:40:53 raspberrypi systemd[1]: apache2.service: Failed with result 'exit-code'. Feb 22 22:40:53 raspberrypi systemd[1]: Failed to start The Apache HTTP Server. Processing triggers for man-db (2.8.5-2) ... Processing triggers for systemd (241-7~deb10u6) ... root@raspberrypi:/home/pi# client_loop: send disconnect: Broken pipe

6by9 commented 3 years ago
Feb 22 22:40:53 raspberrypi apachectl[8201]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Feb 22 22:40:53 raspberrypi apachectl[8201]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80

You already have a service using port 80, so you can't start another. sudo netstat -lpn may help you identify the process that is already bound to port 80.