Last active
September 22, 2023 22:37
-
-
Save initcron/66f5264b962733ca53ae15714fefc2e5 to your computer and use it in GitHub Desktop.
Install wordpress on Ubuntu 16.04 LTS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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