Keeping Debian and Ubuntu Machines up to date, Automatically

Debian and Ubuntu are excellent operating systems with (very) long term support and product updates - making them popular both at work and in my homelab. As someone famous probably said: If you have to do something more than once - script it. To that end I am an avid user of Debian and Ubuntu’s automatic update feature. To get going first install unattended-upgrades: sudo apt install unattended-upgrades Then reconfigure it for installing unattended upgrades:...

July 17, 2020 · 4 min · 678 words · leonroy

Securing a multi-user Apache Web Server

As part of refining my Apache web server which runs multiple sites I’ve create a user account, database account and home folder per site so for example the site example.com has a user account example, a database account example and a web folder located at: /home/example/public_html The corresponding Apache VirtualHost for this site is: <VirtualHost *:80> ServerAdmin admin@example.com ServerName www.example.com ServerAlias example.com ErrorLog /var/log/apache2/error.example.com.log LogLevel warn CustomLog /var/log/apache2/access.example.com.log combined DocumentRoot /home/example/public_html <IfModule mod_suexec....

October 28, 2014 · 2 min · 256 words · leonroy