sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password virtualhostx'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password virtualhostx'

sudo apt-get update
sudo apt-get install -y apache2
sudo apt-get install -y php5
sudo apt-get install -y mysql-server php5-mysql
sudo service apache2 reload

sudo chown vagrant:vagrant /etc/apache2/sites-available
sudo chown vagrant:vagrant /etc/apache2/sites-enabled

sudo a2enmod ssl
sudo a2enmod rewrite

sudo rm /etc/apache2/sites-available/default-ssl.conf

sudo service apache2 restart
