Apache2 is not restarted or reloaded properly in ubuntu 16.04

The solution for the following Error.
Job for apache2.service failed because the control process exited with error code. See “systemctl status apache2.service” and “journalctl -xe” for details.

The reason for the issue.
You have added virtual hosts with ssl configurations and you have not enabled the ssl module yet.
Run the following command in ubuntu terminal.

sudo a2enmod ssl

Then try to restart or reload the apache2

 sudo service apache2 reload

Now apache2 should be reloaded properly.

 

Leave a Comment