From 2c0f304910122c8573f93b8d96b057431aa533b6 Mon Sep 17 00:00:00 2001 From: Josh Mudge Date: Sat, 12 Jan 2019 19:09:00 -0700 Subject: [PATCH] Add in important info. --- wordpress-setup.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wordpress-setup.sh b/wordpress-setup.sh index bb24d24..6154c87 100644 --- a/wordpress-setup.sh +++ b/wordpress-setup.sh @@ -10,7 +10,7 @@ dss --user $USER init #sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 -sudo apt-get install nginx unzip php7.0-fpm php-xml php-xmlrpc software-properties-common php7.0-mysql mysql-server zip php-gd -y +sudo apt-get install nginx unzip php-fpm php-xml php-xmlrpc software-properties-common php-mysql mysql-server zip php-gd -y wget https://wordpress.org/latest.zip sudo mkdir /var/www/wordpress unzip latest.zip @@ -28,6 +28,8 @@ echo "run: sudo certbot --authenticator webroot --installer nginx after configu # For permalinks, add: try_files $uri $uri/ /index.php?$args; in place of the other try_files in configuration. # Fix perms sudo chown -R www-data:www-data /var/www/dir +#Run: sudo mysql_secure_installation + # Change Table prefix in interface if you have multiple sites. # mysql -u root mysql -p #CREATE DATABASE wordpress; @@ -40,7 +42,7 @@ echo "run: sudo certbot --authenticator webroot --installer nginx after configu # Install WP-CLI curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -chmod +x wp-cli.phar +sudo chmod +x wp-cli.phar sudo mv wp-cli.phar /usr/local/bin/wp #https://askubuntu.com/questions/705458/ubuntu-15-10-mysql-error-1524-unix-socket