I removed apache2 before and I reinstalled it on ubuntu 14.04. Now I want to restart apache.
Here is how apache was uninstalled:
sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common
sudo apt-get autoremove
After re-installing I tried below
sudo service apache2 restart
but it gives
$ apache2: unrecognized service
When I check apache version
$ apache2 -v
Server version: Apache/2.4.7 (Ubuntu) Server built: Mar 10 2015 13:05:59
What am I missing?
I rebooted my vps but still it's giving the same error.