sqldump

(coffee) => code

Reinstall Apache on Ubuntu

This handy little shell script will reset your entire apache installation to what it was like when you first installed it.

1
2
3
4
APACHE_PKGS=`sudo dpkg --get-selections | grep apache | cut -f 1`
echo $APACHE_PKGS
sudo apt-get remove --purge $APACHE_PKGS
sudo apt-get install $APACHE_PKGS

Worked on Ubuntu 11.04. Source: http://bit.ly/mR0bOq