Skip to content

Instantly share code, notes, and snippets.

@initcron
Last active September 22, 2023 22:37
Show Gist options
  • Save initcron/66f5264b962733ca53ae15714fefc2e5 to your computer and use it in GitHub Desktop.
Save initcron/66f5264b962733ca53ae15714fefc2e5 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