Ubuntu – Job for apache2.service failed because the control process exited with error code.

14.04Apache2

I tried to restart my Apache after updating my config

sudo service apache2 restart

I kept getting this

Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.

How do I prevent that ?

Best Answer

Here is the answer: https://askubuntu.com/a/1022319/850782

cd /etc/apache2
apache2ctl configtest

probably has some typo in some config file that you have created:

vi /etc/apache2/sites-enabled/yoursite.conf
Related Question