You need to log in to create posts and topics.

Apache Restart Not Working- Tried Command Line Restart but nothing happens?

This error is mainly caused due to the outdated command for restarting Apache service!. The commands for restarting apache service different to Ubuntu 14.04 version and its later versions like Ubuntu 16.04, 18.04. So if you tried to use the Restart Apache command applicable to the earlier version of Ubuntu, It will throw you the error.  I suggest you follow the below commands if you want to restart your apache server on Ubuntu 16.04 & 18.04 instantly.

$ sudo /etc/init.d/apache2 restart

If you are using the Ubuntu 16.10 edition:

$ sudo systemctl restart apache2

The above command will help you to restart the apache server on ubuntu 16.10 editions.