Skip to content

Instantly share code, notes, and snippets.

@mikekunze
Last active January 1, 2016 19:09
Show Gist options
  • Save mikekunze/8188726 to your computer and use it in GitHub Desktop.
Save mikekunze/8188726 to your computer and use it in GitHub Desktop.
export DEBIAN_FRONTEND=noninteractive
echo "deb http://archive.ubuntu.com/ubuntu/ precise main universe" > /etc/apt/sources.list; apt-get update;
apt-get -y install apache2 php5 php5-gd libapache2-mod-php5 postfix wget supervisor ssh php5-pgsql vim curl libcurl3 libcurl3-dev php5-curl php5-xmlrpc php5-intl
echo "root:admin" | chpasswd; mkdir /var/run/sshd
cd /tmp; tar zxvf moodle-2.6.tgz; mv /tmp/moodle /var/www
chown -R www-data:www-data /var/www/moodle
mkdir /var/moodledata
chown -R www-data:www-data /var/moodledata; chmod 777 /var/moodledata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment