apt-get update

# External dependencies
apt-get install -y imagemagick

# Webserver
apt-get install -y apache2

# PHP
apt-get install -y php7.0-fpm php7.0
# PHP extensions
apt-get install -y php7.0-mysql php7.0-curl php7.0-xml
apt-get install -y php7.0-mbstring php7.0-zip php7.0-mysqli
apt-get install -y php7.0-gd php7.0-json php7.0-mbstring

# Enable apache modules
a2enmod proxy proxy_fcgi
systemctl restart apache2.service

# Do not install composer via apt, it's to old and not possible to update.
# apt-get install -y composer

# For easier work
apt-get install -y colordiff tree zsh
cp /vagrant/examples/.zshrc /home/ubuntu/.zshrc

# Install MySQL
debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
apt-get install -y mysql-server mysql-client
