I accidentally erased /usr/sbin/a2ensite. In whatever way I'm able to restore it? Attempted sudo apt-get install a2ensite however i got the mistake message:

Reading through package lists... Done Building dependency tree Reading through condition information... Done E: Could not find package a2ensite

Attempted sudo apt-get install apache2 and sudo aptitude update but no luck there either. Any ideas? Using ubuntu.

Cheers, agsb

a2ensite like a script is included in the apache2.2-common package. You are able to download it here and extract the file in the contained data archive yourself.

Edit: The Ubuntu packages are available here.

Try: sudo apt-get install --reinstall apache2 apache2-common