Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save brianteachman/0dba863fafee1ac677604a7ba4f765ba to your computer and use it in GitHub Desktop.
Save brianteachman/0dba863fafee1ac677604a7ba4f765ba to your computer and use it in GitHub Desktop.
Install wordpress on Ubuntu 16.04 LTS
#!/bin/bash
sudo apt-get update
sudo apt-get install apache2 apache2-utils -yq
sudo systemctl enable apache2
sudo systemctl start apache2
sudo apt-get install php libapache2-mod-php php-mysql -yq
sudo apt-get install php-curl php-gd php-mbstring php-xml php-xmlrpc -yq
sudo a2enmod rewrite
sudo systemctl restart apache2
cd /var/www
sudo curl -O https://wordpress.org/latest.tar.gz
sudo tar -xzf latest.tar.gz
sudo rm -rf html/*
sudo mv wordpress/* html/
sudo chown -R www-data:www-data html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment