Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
home_server:web_server_setup [2022-06-28 Tue wk26 05:02] – [Install FluxBB] baumkp | home_server:web_server_setup [2024-12-07 Sat wk49 11:13] (current) – [Basic Web Server setup on VM] baumkp | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{tag> | + | {{tag> |
======Web Server setup====== | ======Web Server setup====== | ||
=====Basic Web Server setup on VM===== | =====Basic Web Server setup on VM===== | ||
- | I am moving away from Ubuntu to Debian. I find the instruction for here are good to setup a basic web server [[https://workaround.org/ispmail|workaround.org]] ISPmail tutorials | + | I am moving away from Ubuntu to Debian. I find the instruction for here are good to setup a basic web server |
++++Old, tl;dr;|The main reference used is [[https:// | ++++Old, tl;dr;|The main reference used is [[https:// | ||
Line 99: | Line 99: | ||
++++ | ++++ | ||
'' | '' | ||
- | |||
\\ | \\ | ||
+ | |||
Seems there are tools to directly manually edit the **/ | Seems there are tools to directly manually edit the **/ | ||
+ | |||
---- | ---- | ||
=====LDPA===== | =====LDPA===== | ||
Line 120: | Line 121: | ||
*To change the Hosename: '' | *To change the Hosename: '' | ||
*Ubuntu as 18.04 and up to 20.4 complicates further, another file needs to be modified to prevent automated changes, if present the file '' | *Ubuntu as 18.04 and up to 20.4 complicates further, another file needs to be modified to prevent automated changes, if present the file '' | ||
- | *Last the /etc/hosts file should be updated to include the Hostname, this is same procedure as previous | + | *Last the '' |
*127.0.0.1 localhost | *127.0.0.1 localhost | ||
*127.0.0.1 New_Hostname | *127.0.0.1 New_Hostname | ||
- | *Additional system hosts can be placed in "/etc/hosts" | + | *Additional system hosts can be placed in '' |
====Apache2 Setup==== | ====Apache2 Setup==== | ||
*Copy the current html files to the proposed new location: '' | *Copy the current html files to the proposed new location: '' | ||
Line 148: | Line 150: | ||
- Check configuration files with: '' | - Check configuration files with: '' | ||
- After changes are made reload or restart apache2: '' | - After changes are made reload or restart apache2: '' | ||
+ | To further add to confusion it would seem some Linux distributions refer to '' | ||
+ | * ''/ | ||
+ | * systemd service: '' | ||
+ | Note that these examples are presumption based upon documentation references. Basically Debian and related downstream distributions do not reference ' | ||
=====Secure Web Server Settings===== | =====Secure Web Server Settings===== | ||
Line 182: | Line 188: | ||
*To update the repositories including the newly added Certbot ones: '' | *To update the repositories including the newly added Certbot ones: '' | ||
*To install Certbot: '' | *To install Certbot: '' | ||
+ | DigitalOcean has Ubuntu 20.04 setup, [[https:// | ||
++++ | ++++ | ||
- | DigitalOcean has Ubuntu 20.04 setup, [[https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-20-04|How To Secure Apache with Let's Encrypt on Ubuntu 20.04]]. Once setup, the basic commands are: | + | To install Certbot: '' |
+ | Make sure the basic web site domain/ | ||
+ | I now prefer to use the following instructions, [[https://workaround.org/ispmail/bullseye/tls-encryption-key-and-certificate/ | ||
*To create a new certificate with sub-domains: | *To create a new certificate with sub-domains: | ||
+ | *'' | ||
*To manually auto renewal: '' | *To manually auto renewal: '' | ||
Line 191: | Line 201: | ||
**The cerbot documentation can be found at: [[https:// | **The cerbot documentation can be found at: [[https:// | ||
- | *To check systemd times: '' | + | *To check systemd times: '' |
*To list cerbot related certificates: | *To list cerbot related certificates: | ||
*To delete cerbot certificats not required '' | *To delete cerbot certificats not required '' | ||
Line 221: | Line 231: | ||
*For the relocated data: '' | *For the relocated data: '' | ||
| | ||
- | ===Nextcloud Updating=== | + | ====Nextcloud Updating==== |
| | ||
+ | ====mariadb binary log files==== | ||
+ | The mysql binary log files are located here: '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
---- | ---- |