Made the docs clearer and more precise.
This commit is contained in:
parent
251ac72729
commit
9b6492f9c2
|
@ -2,7 +2,7 @@
|
||||||
# Wordpress install script
|
# Wordpress install script
|
||||||
# Written by Joshua Mudge
|
# Written by Joshua Mudge
|
||||||
# Ad Mejorem Dei Glorium
|
# Ad Mejorem Dei Glorium
|
||||||
version="v1.0.4"
|
version="v1.1.0"
|
||||||
|
|
||||||
curl -s "https://gitlab.daplie.com/sysadmin/daplie-snippets/raw/master/dss/setup.sh" | bash
|
curl -s "https://gitlab.daplie.com/sysadmin/daplie-snippets/raw/master/dss/setup.sh" | bash
|
||||||
|
|
||||||
|
@ -19,26 +19,36 @@ sudo mv wordpress/* /var/www/website/
|
||||||
sudo add-apt-repository -y ppa:certbot/certbot
|
sudo add-apt-repository -y ppa:certbot/certbot
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y python-certbot-nginx certbot
|
sudo apt-get install -y python-certbot-nginx certbot
|
||||||
|
|
||||||
# user input required
|
# user input required
|
||||||
echo "run: sudo certbot --authenticator webroot --installer nginx after configuring default_server and root directory"
|
|
||||||
|
|
||||||
#echo "run: sudo certbot certonly --webroot --webroot-path=/var/www/wordpress -d www.youdomain.com -d yourdomain.com"
|
echo "Update Nginx configuration in /etc/nginx/sites-enabled/ using example configuration."
|
||||||
echo "Update Nginx configuration in /etc/nginx/sites-enabled/ with using example configuration."
|
echo "run: sudo certbot --authenticator webroot --installer nginx after configuring default_server and root directory. You will have to input the server root directory."
|
||||||
# For uploading: add this to Nginx config (/etc/nginx/nginx.conf) under the http section: client_max_body_size 100m;
|
# You could also run: sudo certbot certonly --webroot --webroot-path=/var/www/wordpress -d www.youdomain.com -d yourdomain.com"
|
||||||
# For permalinks, add: try_files $uri $uri/ /index.php?$args; in place of the other try_files in configuration.
|
# For permalinks, add: try_files $uri $uri/ /index.php?$args; in place of the other try_files in configuration.
|
||||||
# Change Table prefix if multiple sites.
|
# Fix perms sudo chown -R www-data:www-data /var/www/dir
|
||||||
# For uploading: sudo chown -R www-data:www-data /var/www/dir
|
|
||||||
#mysql -u root mysql -p CREATE DATABASE ideside; CREATE USER 'ideuser'@'localhost' IDENTIFIED BY 'yourpassword'; GRANT ALL PRIVILEGES ON ideside.* TO 'ideuser'@'localhost'; FLUSH PRIVILEGES;
|
|
||||||
|
|
||||||
|
# Change Table prefix in interface if you have multiple sites.
|
||||||
# mysql -u root mysql -p
|
# mysql -u root mysql -p
|
||||||
#CREATE DATABASE wordpress;
|
#CREATE DATABASE wordpress;
|
||||||
#CREATE USER 'wordpress'@'localhost' IDENTIFIED BY 'newpassword';
|
#CREATE USER 'wordpress'@'localhost' IDENTIFIED BY 'newpassword';
|
||||||
#GRANT ALL PRIVILEGES ON wordpress.* TO 'wordpress'@'localhost';
|
#GRANT ALL PRIVILEGES ON wordpress.* TO 'wordpress'@'localhost';
|
||||||
#FLUSH PRIVILEGES;
|
#FLUSH PRIVILEGES;
|
||||||
|
#quit
|
||||||
|
|
||||||
|
|
||||||
|
# Install WP-CLI
|
||||||
|
|
||||||
|
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
|
||||||
|
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
|
#https://askubuntu.com/questions/705458/ubuntu-15-10-mysql-error-1524-unix-socket
|
||||||
|
|
||||||
#https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04
|
#https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04
|
||||||
|
|
||||||
# Create root crontab: 0 5 20 * * sudo letsencrypt renew --force-renew && sudo service nginx restart
|
# Create root crontab: 0 5 20 * * sudo letsencrypt renew --force-renew && sudo service nginx restart
|
||||||
|
|
||||||
|
# Crontab for BASH autoupdate: * * * * 0 bash "cd /var/www/wordpress && wp core update && wp plugin update --all && wp theme update --all"
|
||||||
|
# Make sure you get both default and default80 configs setup and have /var/www/wordpress setup properly and not at /var/www/wordpress/wordpress/
|
||||||
|
# WP-CLI
|
||||||
|
|
Loading…
Reference in New Issue