http://tiddlywiki.com/static/Installing%2520TiddlyWiki%2520on%2520Node.js.html http://tiddlywiki.com/static/Node.js.html https://www.npmjs.com/package/tiddlywiki 1. Install Node.js $ sudo apt-get install nodejs 2. Install Tiddlywiki $ sudo npm install -g tiddlywiki ERRORS & SOLUTIONS: when using the command above, if you get an error similar to “sudo: npm: command not found” then install npm with the code below and then install Tiddlywiki again (npm is supposed […]
How To Uninstall NGINX
https://askubuntu.com/questions/235347/what-is-the-best-way-to-uninstall-nginx We may want to uninstall and then re-install nginx if any problems occur. First, un-install with code below, then if using a custom nginx, re-install by following the ‘Install Nginx’ steps here – WordPress Install (Single Site) – Ubuntu 16.04, NGINX, PHP7 Backup all nginx config files at ‘/etc/nginx’ before doing any of this! […]
How To Setup Subdomains & LetsEncrypt On NGINX
How to Host Multiple Sites Using NGINX Using domain name: yourdomain.com yourdomain.com $ sudo letsencrypt certonly -a webroot –webroot-path=/var/www/yourdomain.com/html -d yourdomain.com -d www.yourdomain.com $ sudo nano /etc/nginx/snippets/ssl-yourdomain.com.conf ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem; subdomain1.yourdomain.com sudo letsencrypt certonly -a webroot –webroot-path=/var/www/subdomain1.yourdomain.com/html -d subdomain1.yourdomain.com sudo nano /etc/nginx/snippets/ssl-subdomain1.yourdomain.com.conf ssl_certificate /etc/letsencrypt/live/subdomain1.yourdomain.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/subdomain1.yourdomain.com/privkey.pem; subdomain2.yourdomain.com sudo letsencrypt certonly -a webroot –webroot-path=/var/www/subdomain2.yourdomain.com/html -d […]
Enabling Nginx mod_rewrite
https://www.digitalocean.com/community/questions/enabling-nginx-mod_rewrite https://www.nginx.com/resources/wiki/start/topics/recipes/wordpress/ open the file below replacing ‘default’ if necessary with the sites server block: $ sudo nano /etc/nginx/sites-available/default Replace: try_files $uri $uri/ =404; with: try_files $uri $uri/ /index.php?$args; If using a subfolder (say /wordpress), you’ll have to add an extra location /wordpress/ block to your configuration file : location /wordpress/ { try_files $uri $uri/ […]
How To Create A Vagrant Base Box
https://scotch.io/tutorials/how-to-create-a-vagrant-base-box-from-an-existing-one https://www.vagrantup.com/docs/virtualbox/boxes.html This tutorial will create a base box using Ubuntu 16.04 1. First, initialize vagrant, ssh into the box and install whatever you want on it. While still in ssh… You can also use this tutorial and script to initialize and install a lemp stack: How To Provision A LEMP Stack in Vagrant 2. […]
How To Provision A LEMP Stack In Vagrant
snippets of code taken from: https://github.com/danielwrobert/vagrant-LEMP/blob/master/provision/setup.sh https://github.com/panique/vagrant-lamp-bootstrap This will install Ubuntu 16.04, NGINX, MariaDB, PHP7-FPM and Git 1. Initialize Vagrant $ vagrant init bento/ubuntu-16.04 2. Edit Vagrantfile Next, edit Vagrantfile and make it look something like this below (without the commented lines). This will create a symbolic link from the root folder with Vagrantfile in […]
How To Backup Nextcloud
https://docs.nextcloud.com/server/stable/admin_manual/maintenance/backup.html https://help.nextcloud.com/t/backup-nextcloud-with-seperate-data-folder-and-the-database/5841/2 good info on rsync: http://webgnuru.com/linux/rsync_incremental.php more info on mysql backups: https://www.liquidweb.com/kb/how-to-back-up-mysql-databases-from-the-command-line/ Restoring Nextcloud from backup: https://kenfavors.com/code/how-to-restore-a-nextcloud-backup/ To backup an Nextcloud installation there are four main things you need to retain: The config folder The data folder The database The theme folder Backup Folders Simply copy your config, data and theme folders (or even […]