a2enmod rewrite proxy_fcgi setenvif ssl
-# in case mod-php was enabled
-a2dismod php
+# in case mod-php was enabled (this is the case on github's ubuntu with php 5.x at least)
+a2dismod php || true
# configure apache virtual hosts
fi
echo "export HTTPSERVER=localhost" >> /etc/apache2/envvars
+ls -la /etc/apache2/mods-enabled
+
service apache2 restart