server_configuration

This is an old revision of the document!


For the hosting of this wiki, my blog Rows Across The Lake and other things, I have a VM web host.

Hosting Provider

The host I chose to use is use DigitalOcean I've been using them for some years and I'm very happy with the service and pricing. They have many options and allow you to scale to your requirements including hosting in many geographic locations.

Note: The link above is my Referral link, If you sign up using it we both win! Everyone I refer gets $100 in credit over 60 days. Once they’ve spent $25 with DigitalOcean, I'll get $25.

Detail Pages

Bulk To sort

Aim: Create a new Ubuntu Instance & migrate existing droplet data to it
- https://datablog.roman-halliday.com/


Alternative... might have saved me hours!
- https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-ubuntu-20-04-focal-fossa


IP Challenge
- https://www.digitalocean.com/community/questions/how-to-transfer-ip-to-new-droplet
- https://www.digitalocean.com/community/questions/how-do-i-transfer-an-ip-address-between-droplets

Setting up the new WordPress - Ubuntu 20.04
- https://marketplace.digitalocean.com/apps/wordpress?utm_medium=marketplace&utm_source=marketplace&utm_campaign=marketplace&utm_content=no_image#getting-started

Introduction: 
- Digital Ocean - Referral link: https://m.do.co/c/bb281f2fae53 (Everyone you refer gets $100 in credit over 60 days. Once they’ve spent $25 with us, you'll get $25. There is no limit to the amount of credit you can earn through referrals.)
- Broad offerings
- Droplets - Like AWS EC2
- Volumes  - Like AWS S3
- What I have (Old Ubuntu): I wanted to do it all myself
- What I want to do: New Ubuntu 20.04 LTS (WordPress 5.5.1 already installed, save time)

Prepare for migration
- DNS: 3600 seconds = 1 hour   Days before migration so that changes will be picked up faster without overdoing it
-        60 seconds = 1 min    Day of migration - Ready to switch to shorter/migration
-     86400 seconds = 24 hours Good operational normal

Get configuration
- https://www.digitalocean.com/community/tutorials/how-to-migrate-linux-servers-part-1-system-preparation
#System version
uname -r
uname -m

which service
#Services
service --status-all
#Firewall
ufw status
ufw status verbose

How To Secure Apache with Let's Encrypt on Ubuntu 20.04
- https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-20-04

Backup
- Blessed are the paranoid for they test their backups
Backup old Blog
- Blessed are the paranoid for they test their backups

Volume to transfer data (yes I can SFTP etc... between droplets/environments, but this also serves as a backup) - https://www.digitalocean.com/docs/volumes/
- Show create
- Mount           -- https://www.digitalocean.com/docs/volumes/how-to/mount/
- Format
- Copy to backup 
- Unmount

Create New Droplet
- Point to instructions: https://cloud.digitalocean.com/marketplace/5ba19759c472e4189b34e066?i=40c396
- Install & configure

Configure Droplet
- The WordPress One-Click Quickstart guide: https://do.co/34TfYn8#start
- Rows Across The Lake

SFTP
- SFTP: https://linuxconfig.org/how-to-setup-sftp-server-on-ubuntu-20-04-focal-fossa-linux
- https://www.howtogeek.com/50787/add-a-user-to-a-group-or-second-group-on-linux/
- https://www.digitalocean.com/community/tutorials/how-to-use-sftp-to-securely-transfer-files-with-a-remote-server
- https://wordpress.org/support/topic/the-session-allows-sftp-connections-only/

- WordPress backup/export
 - https://wpengine.com/resources/migrate-wordpress-site/
 - duplicator:
  - https://www.wpbeginner.com/wp-tutorials/how-to-move-wordpress-to-a-new-host-or-server-with-no-downtime/#setupduplicator
  - https://snapcreek.com/duplicator/docs/quick-start/?utm_source=duplicator_free&utm_medium=wordpress_plugin&utm_content=package_built_install_help&utm_campaign=duplicator_free#quick-040-q
 - All-in-One WP Migration
  - https://wpengine.com/resources/migrate-wordpress-site/#All-in-One_WP_Migration
  - https://help.servmask.com/knowledgebase/all-in-one-wp-migration-user-guide/
  - http://datablog.roman-halliday.com/wp-admin/plugin-install.php?tab=plugin-information&plugin=all-in-one-wp-migration&TB_iframe=true&width=600&height=550

- WordPress is requiring FTP credentials before installing plugin
- https://wordpress.org/support/topic/wordpress-is-requiring-ftp-credentials-before-installing-plugin/
 
- https://help.servmask.com/2018/10/27/how-to-increase-maximum-upload-file-size-in-wordpress/

https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-20-04




- Mount
- Restore files for WordPress
- migrate configuration & blog
  - Move apache base location
ll
Other Stuff (cover fast, future blog post)
- Wiki(s)
- Mailbox
- SFTP?
- Firewall -- https://ubuntu.com/server/docs/security-firewall
           -- 
           -- 
- Hostname -- https://www.cyberciti.biz/faq/ubuntu-change-hostname-command/	

NOTES

for n in {1..8}; do for i in {1..10}; do echo -n ${i: -1}; done; done; echo ""
for i in {1..80}; do echo -n '#'; done; echo ''
for i in {1..100}; do echo -n '#'; done; echo ''
PuTTY
- Font 20px
- Log: C:\Users\david\Documents\Hosting\PUtty Logs\

Taskbar settings:
- Lock taskbar: Off
- Show taskbar on all displays: Off
- Move to other screen
  • server_configuration.1610549479.txt.gz
  • Last modified: 2021/01/13 14:51
  • by david