In my web-server configuration troubleshooting I went through a process of uninstalling apache2 and reinstalling it. I accidentally removed the file
/etc/init.d/apache2 which is responsible for starting and stopping the apache service.
I’ve tried reinstalling the
apache2.2-common package which is supposed to place the file, but it is still not present.
How can I do a complete reinstall of Apache? The standard
apt-get remove and
apt-get install doesn’t give me that file back.
You don’t need to delete the package first. Just reinstall it:
sudo apt-get install --reinstall apache2.2-common
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.