Skip to content

Instantly share code, notes, and snippets.

@dmythro
Last active August 29, 2015 14:15
Show Gist options
  • Save dmythro/e2edf50d1230562eb99f to your computer and use it in GitHub Desktop.
Save dmythro/e2edf50d1230562eb99f to your computer and use it in GitHub Desktop.
Quick setup for Ubuntu 14 + LEMP (on DigitalOcean)
#!/bin/bash
# Locale Set: English by default
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
dpkg-reconfigure locales
locale
# Time Zone selection
dpkg-reconfigure tzdata
# PHP: JSON
apt-get install php5-json
# PHP: GD
apt-get install php5-gd
# I just like when it's "/www"
mkdir /www
chown -R www-data:www-data /www/
chmod -R 755 /www/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment