Skip to content

Instantly share code, notes, and snippets.

@chgeuer
Last active April 12, 2016 12:50
Show Gist options
  • Save chgeuer/88bf5ac35512957e4babd0378ef5eb78 to your computer and use it in GitHub Desktop.
Save chgeuer/88bf5ac35512957e4babd0378ef5eb78 to your computer and use it in GitHub Desktop.
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