awshosteddokuwiki
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| awshosteddokuwiki [2025/07/14 06:17] – [Configure dokuwiki] sjoerd | awshosteddokuwiki [2026/01/08 20:46] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 403: | Line 403: | ||
| * You have divergent branches and need to specify how to reconcile them. | * You have divergent branches and need to specify how to reconcile them. | ||
| * Solution: {{{git config --global pull.rebase true}}} | * Solution: {{{git config --global pull.rebase true}}} | ||
| + | * Fatal: Not possible to fast-forward, | ||
| + | * Solution: {{{git pull --rebase}}} | ||
| Always when you want to work with git on the server, follow the following steps: | Always when you want to work with git on the server, follow the following steps: | ||
| Line 454: | Line 456: | ||
| Any changes and details can be reviewed in the following files: | Any changes and details can be reviewed in the following files: | ||
| - | ```text | + | < |
| Backup files: | Backup files: | ||
| * / | * / | ||
| Line 463: | Line 465: | ||
| / | / | ||
| - | ``` | + | </ |
| - | > The certificate can be reviewed by going to <https:// | + | > The certificate can be reviewed by going to https:// |
| === Setup Certificate Manager === | === Setup Certificate Manager === | ||
| Line 497: | Line 499: | ||
| * Cache policy: CachingDisabled | * Cache policy: CachingDisabled | ||
| - | Once you, ve saved the changes the distribution needs to be deployed again, which can take a few minutes. Note that, depending on already | + | > Note: With the latest dokuwiki version I kept having trouble with logging in. I had to create CloudFront Invalidations ({{{/*}}}) all the time to be able to log in. I removed all behaviors except for the default. After that it started working again. |
| + | |||
| + | Once you've saved the changes the distribution needs to be deployed again, which can take a few minutes. Note that, depending on already | ||
| === Create Route 53 Alias Record === | === Create Route 53 Alias Record === | ||
| Line 519: | Line 523: | ||
| * Click on ' | * Click on ' | ||
| * Name: wiki.getshifting.com-20250707 | * Name: wiki.getshifting.com-20250707 | ||
| + | |||
| + | == Logs == | ||
| + | |||
| + | In the next step we will configure monitoring using AWS CloudWatch, in which we will also send the logs to Cloudwatch. For this we will change the format and naming of the apache logfiles, so we need to change [[https:// | ||
| + | |||
| + | Let's start with an overview of the logfiles we are interested in: | ||
| + | |||
| + | * Apache access log: {{{/ | ||
| + | * Apache error log: {{{/ | ||
| + | * Dokuwiki error log: {{{/ | ||
| + | * This file is already [[https:// | ||
| + | * Debian package log: {{{/ | ||
| + | * This file is already rotated by logrotate, so we don't need to change anything here | ||
| + | |||
| + | To change the logrotation for the apache logfiles, we need to change the logrotate settings file for apache located at {{{/ | ||
| + | |||
| + | //Original file content:// | ||
| + | < | ||
| + | / | ||
| + | weekly | ||
| + | rotate 150 | ||
| + | dateext | ||
| + | compress | ||
| + | copytruncate | ||
| + | missingok | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | //Modified file content:// | ||
| + | < | ||
| + | / | ||
| + | weekly | ||
| + | rotate 26 | ||
| + | dateext | ||
| + | compress | ||
| + | copytruncate | ||
| + | missingok | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | Note that if any logfile are already present in {{{/ | ||
| == Next Steps == | == Next Steps == | ||
| Line 552: | Line 597: | ||
| * The dokuwiki login doesn' | * The dokuwiki login doesn' | ||
| + | |||
| + | //This wiki has been made possible by:// | ||
| + | |||
| + | < | ||
| + | <script async src=" | ||
| + | | ||
| + | <!-- Wiki End of Page --> | ||
| + | <ins class=" | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | < | ||
| + | | ||
| + | </ | ||
| + | </ | ||
awshosteddokuwiki.1752473851.txt.gz · Last modified: by sjoerd
