Apache2 is not working & I can't restart it

use Linux Mint. When I try to restart apache displays next message. Job for apache2.service failed because the control process exited with error code. See “systemctl status apache2.service” and “journalctl -xe” for details.

HERE IS THE SOLUTION
you need to Kill the process which acquired port 80. You can find that easily with following command :-

sudo netstat -ltnp | grep ':80'

This will return something like :-

tcp 0 0 127.0.0.1:80 0.0.0.0:* LISTEN 1588/aolserver4-nsd

for above case Process number 1588 acquired port 80 , you need to kill that process 1588.

sudo kill -9 1588

Now you can start your apache

Solution 2

go to /etc/apache2/ports.conf and uncomment Listen 80