Ubuntu 20.04 basic server setup

*

Rough notes on the steps I usually take when setting up a new VPS. Things are a little bit different for Ubuntu 20.04. Like MySQL 8 rather than 5.7. And having to manually install bash-completion!?

1. Server essentials

apt install bash-completion
apt install ufw
ufw allow ssh
ufw allow https
ufw enable
apt install fail2ban

apt install rsync

# set a password so can log in to virtual KVM switch console at host if ever need to
passwd

2. Web server stuff

# for websites 
apt install apache2
apt install certbot
apt install python3-certbot-apache

# for wordpress
apt install mysql-server
mysql_secure_installation # note: [[id:beeb75e4-6038-4816-9870-ad2f98982e93][Setting up MySQL]] 
apt install php php-zip php-mysql php-gd php-xml php-xmlrpc

3. Site configuration

Then configure the sites themselves in Apache.

4. Elsewhere

4.3. Mentions

This page last updated: 2023-03-17 Fri 16:15. Map. Recent changes. Source. Peer Production License.