From b20c0382d299416025d5a27c34e119dca12493c5 Mon Sep 17 00:00:00 2001 From: = <=> Date: Mon, 1 Jan 2018 17:40:32 -0700 Subject: [PATCH] Add wordpress helper script --- wordpress-setup.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 wordpress-setup.sh diff --git a/wordpress-setup.sh b/wordpress-setup.sh new file mode 100644 index 0000000..96dbe5a --- /dev/null +++ b/wordpress-setup.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# Wordpress install script +# Written by Joshua Mudge +# Ad Mejorem Dei Glorium +version="v1.0" + +curl -s "https://gitlab.daplie.com/sysadmin/daplie-snippets/raw/master/dss/setup.sh" | bash + +dss --user $USER init + +sudo apt-get install nginx unzip php7.0-fpm php-xml php-xmlrpc -y + +wget https://wordpress.org/latest.zip +sudo mkdir /var/www/wordpress +unzip latest.zip /var/www/wordpress/ + +echo "Update Nginx configuration in /etc/nginx/sites-enabled/ with using example configuration." + +echo "run: sudo letsencrypt certonly --webroot --webroot-path=/var/www/wordpress -d www.youdomain.com -d yourdomain.com