Last active
April 12, 2016 12:50
-
-
Save chgeuer/88bf5ac35512957e4babd0378ef5eb78 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "$2" > host.txt | |
apt-get update -y | |
apt-get install -y unzip apache2 php5 php5-mysql | |
/usr/sbin/a2enmod rewrite expires headers | |
tar xvfz "$1" --directory / | |
/usr/sbin/useradd 24h | |
chown -R 24h:www-data /var/www | |
chmod -R 775 /var/www | |
/usr/sbin/a2ensite 010-24h | |
/usr/sbin/a2dissite 000-default | |
/usr/sbin/service apache2 reload | |
/etc/init.d/apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment