Skip to content

Instantly share code, notes, and snippets.

@deanturpin
Last active June 23, 2019 12:41
Show Gist options
  • Save deanturpin/08745a417fbbb673cd19fe0814f9d4b8 to your computer and use it in GitHub Desktop.
Save deanturpin/08745a417fbbb673cd19fe0814f9d4b8 to your computer and use it in GitHub Desktop.
# 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