Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| server_configuration [2025/03/31 09:38] – [Backup] david | server_configuration [2025/04/02 09:56] (current) – [Basic Configuration] david | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| Some useful notes from the first server are hidden away under [[server: | Some useful notes from the first server are hidden away under [[server: | ||
| - | ====== Hosting Provider | + | ===== Hosting Provider ===== |
| The host I chose to use is use [[https:// | The host I chose to use is use [[https:// | ||
| Line 142: | Line 142: | ||
| ===== New Environment ===== | ===== New Environment ===== | ||
| ==== Create New Droplet ==== | ==== Create New Droplet ==== | ||
| + | |||
| + | === preconfigured droplet === | ||
| Saving time (haha) by using a WordPress preconfigured droplet: | Saving time (haha) by using a WordPress preconfigured droplet: | ||
| Line 147: | Line 149: | ||
| * Install & configure: The WordPress One-Click Quickstart guide: https:// | * Install & configure: The WordPress One-Click Quickstart guide: https:// | ||
| + | === Build from scratch === | ||
| + | |||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| ==== Basic Configuration ==== | ==== Basic Configuration ==== | ||
| As root | As root | ||
| Line 159: | Line 166: | ||
| <code bash> | <code bash> | ||
| # Update | # Update | ||
| - | sudo apt-get update && sudo apt-get upgrade | + | sudo apt-get update && sudo apt-get upgrade |
| </ | </ | ||
| + | |||
| + | <code bash> | ||
| + | # SSH Access - once user access is sorted | ||
| + | grep PermitRootLogin / | ||
| + | |||
| + | sudo vi / | ||
| + | |||
| + | # PermitRootLogin no | ||
| + | </ | ||
| + | |||
| ==== SFTP ==== | ==== SFTP ==== | ||
| Line 174: | Line 191: | ||
| * Ubuntu Documentation: | * Ubuntu Documentation: | ||
| + | ==== Postfix (email) ==== | ||
| + | Mostly check notes under [[server_configuration: | ||
| + | |||
| + | Migrate Old mail data (after completing step 3 from the guide [[https:// | ||
| + | <code bash> | ||
| + | ################################################################################ | ||
| + | # Email/ | ||
| + | ################################################################################ | ||
| + | cd ~/ | ||
| + | |||
| + | sudo cp -R / | ||
| + | sudo cp -R / | ||
| + | |||
| + | sudo cp -R / | ||
| + | sudo cp -R / | ||
| + | |||
| + | sudo chown -R david:david ~/. | ||
| + | |||
| + | sudo apt-get install postfix | ||
| + | |||
| + | " | ||
| + | |||
| + | sudo ufw allow Postfix | ||
| + | </ | ||
| ==== Configure Apache & WordPress ==== | ==== Configure Apache & WordPress ==== | ||