Last active
June 23, 2019 12:41
-
-
Save deanturpin/08745a417fbbb673cd19fe0814f9d4b8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Create Google Cloud instance using Ubuntu 16 LTS | |
# Tick Allow HTTP traffic and Allow HTTPS traffic | |
# Launch SSH web browser | |
# Paste the following | |
# Just agree to stuff and have a root password ready | |
# Based on this | |
# https://www.tecmint.com/install-wordpress-on-ubuntu-16-04-with-lamp/ | |
sudo apt update && \ | |
sudo apt install apache2 apache2-utils -y && \ | |
sudo systemctl enable apache2 && \ | |
sudo systemctl start apache2 && \ | |
sudo apt install mysql-client mysql-server -y && \ | |
sudo apt install mariadb-server mariadb-client -y && \ | |
sudo mysql_secure_installation && \ | |
sudo apt install php7.0 php7.0-mysql libapache2-mod-php7.0 php7.0-cli php7.0-cgi php7.0-gd -y && \ | |
echo $'<?php\nphpinfo();\n?>' > /tmp/info.php && \ | |
sudo mv /tmp/info.php /var/www/html/ && \ | |
wget -c http://wordpress.org/latest.tar.gz && \ | |
tar -xzvf latest.tar.gz && \ | |
sudo rsync -av wordpress/* /var/www/html/ && \ | |
sudo chown -R www-data:www-data /var/www/html/ && \ | |
sudo chmod -R 755 /var/www/html/ && \ | |
mysql -u root -p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment