Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
server_configuration [2021/01/13 16:10] – david | server_configuration [2021/04/14 08:59] (current) – [Detail Pages] david | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | For the hosting of this wiki, my blog [[http:// | + | ====== Server Configuration - Virtual Host ====== |
+ | |||
+ | For the hosting of this wiki, my blog [[http:// | ||
+ | |||
+ | Some useful notes from the first server are hidden away under [[server: | ||
====== Hosting Provider ====== | ====== Hosting Provider ====== | ||
Line 11: | Line 15: | ||
See: | See: | ||
- | * [[server_configuration:apache]] | + | * [[server configuration:apache]] |
- | * [[server_configuration: | + | * [[server configuration: |
- | * [[server_configuration:email]] | + | * [[server configuration:email]] |
- | * [[server_configuration:cron]] | + | * [[server configuration:cron]] |
+ | * [[server configuration: | ||
+ | * [[server configuration: | ||
+ | * [[server configuration: | ||
+ | * [[server configuration: | ||
+ | |||
+ | Also (for me): | ||
+ | * [[server configuration: | ||
====== Server Migration ====== | ====== Server Migration ====== | ||
Line 52: | Line 63: | ||
==== Get configuration ==== | ==== Get configuration ==== | ||
- | Gollowing | + | Following |
* DigitalOcean Community Documentation: | * DigitalOcean Community Documentation: | ||
Line 67: | Line 78: | ||
# More | # More | ||
- | service --status-all|more | + | service --status-all | more |
</ | </ | ||
Line 89: | Line 100: | ||
As root | As root | ||
<code bash> | <code bash> | ||
+ | # create a user for me | ||
+ | adduser david | ||
+ | |||
# Add my user to sudo | # Add my user to sudo | ||
groupadd david sudo | groupadd david sudo | ||
Line 100: | Line 114: | ||
==== SFTP ==== | ==== SFTP ==== | ||
- | Basic SFTP was already available/ | + | Basic SFTP was already available/ |
+ | ==== Firewall ==== | ||
- | Some related | + | Worth looking at more detailed |
- | SFTP: https:// | + | |
- | https:// | + | |
- | https:// | + | |
- | https://wordpress.org/ | + | |
- | Note, I' | + | The firewall is already configured by DigitalOcean in my choice of droplet (Ubuntu 20.04 with WordPress). However if other services are to be added (in my case yes) the [[https:// |
- | <code bash> | + | * HowTo Geek: [[https:// |
- | # Craete sftp group and add user | + | * Ubuntu Documentation: |
- | groupadd sftp | + | |
- | usermod | + | |
- | + | ||
- | # Restart SSH - 2 methods | + | |
- | systemctl restart ssh | + | |
- | service ssh reload | + | |
- | + | ||
- | # Remove user from group | + | |
- | gpasswd | + | |
- | + | ||
- | # View groups | + | |
- | groups david | + | |
- | </code> | + | |
- | ==== Configure Apache & WorPress | + | ==== Configure Apache & WordPress |
In general, follow scripts/ | In general, follow scripts/ | ||
Line 146: | Line 144: | ||
* https:// | * https:// | ||
- | The two values need to be larger than the file size '' | + | The two values need to be larger than the file size '' |
+ | |||
+ | In the interface, the value which is shown as the " | ||
+ | |||
+ | Edit the '' | ||
- | Under: ''/ | + | < |
- | <file .htaccess> | + | |
php_value upload_max_filesize 256M | php_value upload_max_filesize 256M | ||
php_value post_max_size 200M | php_value post_max_size 200M | ||
Line 172: | Line 173: | ||
=== Duplicator === | === Duplicator === | ||
- | I didn't use as it migrated all the WprdPress | + | I didn't use as it migrated all the WordPress |
* https:// | * https:// | ||
* https:// | * https:// |