1#!/bin/bash 2 3# Install web server 4 5sudo apt-get --assume-yes --quiet update 6sudo apt-get --assume-yes --quiet install \ 7 libapache2-mod-php \ 8 php \ 9 php-cli \ 10 php-gd \ 11 php-intl \ 12 php-mysql \ 13 php-sqlite3 \ 14 php-xml 15systemctl is-enabled --quiet apache2 || sudo systemctl enable apache2 16systemctl is-active --quiet apache2 || sudo systemctl restart apache2 17[[ -e /var/www/html/index.html ]] && sudo mv /var/www/html/index.html /var/www/html/apache.index.html 18exit 0 19