You may come across the following error while restarting Apache:
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
The reason is, some Apache processes are still running though the service is stopped and the port 80 is still binded to some processes.
In this case, you need to search out for the running Apache processes and have to kill them in order to start the service properly. To search the processes, execute:
fuser -n tcp 80
this will list all the PIDs of the running processes that are binded to port 80. To kill them, execute:
kill -9 PID
where, PID are the ones you retrieved from the previous command. Once you kill the PIDs, you can start the Apache service safely. The same is applied for port 443.
Comments are closed.