Website

Setting up NextCloud on Ubuntu 22

These are my notes on setting up NextCloud on Ubuntu 22. There are optional steps for setting up a self-signed SSL certificate or a certificate from letsencrypt.org. If you do not use SSL immediately, disable the https redirect in the Apache configuration file. These instruction assume that MyNextCloud.com and www.MyNextCloud.com properly resolve to a valid/routable …

Setting up NextCloud on Ubuntu 22 Read More »

LightSail VPS WordPress notes

I recently moved a couple WordPress-based websites from an older Amazon Linux 2 based LightSail VPS to a newer Ubuntu 22 based VPS. These are my notes in case I want to refer to them later (with some info redacted for posting publicly). Ensure you can access and edit the domain records since the IP …

LightSail VPS WordPress notes Read More »

Redirecting all pages to https://www…

To simplify URLs on sites I usually like to forward everything to an encrypted connection (HTTPS://) with the www subdomain. Here’s how you setup the Apache .htaccess for this. Just add the following lines to the top of the .htaccess file… RewriteCond %{HTTPS} off RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{HTTP_HOST} !^www. RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] …

Redirecting all pages to https://www… Read More »

Simple website backup script

I have used variation of this backup script for quick backups of typical LAMP stack websites (e.g. based on Drupal or WordPress). This saves the database along with the files into an archive… Depending on the website, there may be various non-web-accessible (private) directories to include in the script as well. Once the script is …

Simple website backup script Read More »