to enable any module you can use the a2enmod command. To enable mod rewrite use the following:
sudo a2enmod rewrite