Skip to content
Advertisement

Apache2 is not working

I 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 the next error tex that displays systemctl status `apache2.service

:

JavaScript

And here what display journalctl -xe

JavaScript

After I have removed and reinstalled apache2 shows next message:

JavaScript

Advertisement

Answer

JavaScript

Add this line in your /etc/apache2/envvars file

if there is no suffix then you have to add

JavaScript

UPDATE

no listening sockets available. You are facing this issue because another application/service acquired port 80 on your Ubuntu Server.

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

JavaScript

This will return something like :-

JavaScript

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

JavaScript

Now you can start your apache

Solution 2

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

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement