How to install WordPress 5.x on Ubuntu with Bitnami |Video upload date:  · Duration: PT8M59S  · Language: EN

Step by step guide to install WordPress 5.x on Ubuntu using a Bitnami stack with commands and configuration tips for a smooth setup

If you want WordPress on Ubuntu without wrestling with every dependency yourself then the Bitnami stack is the calm, mildly smug path. This guide walks through the real world steps to get WordPress 5.x running on an Ubuntu server and keeps the technical bits accurate while making mild jokes at your past server setup attempts.

Prepare the Ubuntu server

Start with a clean, updated Ubuntu box and basic tooling. This is boring but vital. Run package updates and install common utilities so you do not get surprised later.

sudo apt update && sudo apt upgrade -y
sudo apt install curl wget unzip build-essential -y
sudo timedatectl set-timezone America/New_York

Set your timezone and locales now unless you like mysterious timestamp bugs later. If you are on a cloud VM make sure you have an SSH key and a non root user ready.

Download the Bitnami WordPress installer

Go to the official Bitnami site and copy the Linux installer link for the WordPress stack. Do not trust random mirrors. Use a secure download tool and verify the file checksum when available.

wget 'paste the official Bitnami installer link here'
sha256sum bitnami-wordpress-5.x.x-linux-x64.run

If the checksum looks right make the installer executable and prepare for the prompts.

Run the installer

Run the installer as a local administrator and follow the interactive prompts. The installer takes care of Apache and MariaDB configuration for the stack so you do not need to hand wire everything.

chmod +x bitnami-wordpress-5.x.x-linux-x64.run
sudo ./bitnami-wordpress-5.x.x-linux-x64.run

The installer will ask for an install directory an administrator account and whether to enable optional components. Choose strong passwords and a sensible install location. If another service already uses ports 80 or 443 you can change the ports during installation or adjust them afterward.

Configure ports and services

Bitnami stores its stack under /opt/bitnami by default. To change Apache ports edit the Bitnami Apache config files and restart the stack. To manage the stack use the bundled control script.

sudo /opt/bitnami/ctlscript.sh restart apache
sudo /opt/bitnami/ctlscript.sh restart mysql

If you want automatic start on reboot create a simple systemd unit like this and enable it. That way the stack starts when the server does and you avoid the midnight panics.

[Unit]
Description=Bitnami services
After=network.target

[Service]
Type=forking
ExecStart=/opt/bitnami/ctlscript.sh start
ExecStop=/opt/bitnami/ctlscript.sh stop
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

Secure credentials and database

Security is not optional. Pick strong passwords for the WordPress admin and for the MariaDB users. Limit SSH access and use a firewall so your server is not an open invitation.

  • Allow only necessary ports with UFW
  • Consider binding the database to localhost if external access is not needed
  • Disable password logins for SSH and use keys instead
sudo ufw allow OpenSSH
sudo ufw allow 80
sudo ufw allow 443
sudo ufw enable

To restrict MariaDB edit the my.cnf in the Bitnami stack and set bind-address to 127.0.0.1 if you do not need remote DB access.

Verify access and finalize

Open your server IP or domain in a browser and log into the WordPress dashboard at /wp-admin with the admin account you created during installation. Test creating a post change the permalink structure and install updates for plugins and themes.

Important housekeeping steps

  • Run plugin and theme updates from the dashboard to avoid incompatibilities with WordPress 5.x
  • Back up the /opt/bitnami directory and the database regularly
  • Harden wp-config php file permissions and remove sample files you do not need

Quick command cheat sheet

sudo apt update && sudo apt upgrade -y
wget 'bitnami installer link'
sha256sum bitnami-wordpress-5.x.x-linux-x64.run
chmod +x bitnami-wordpress-5.x.x-linux-x64.run
sudo ./bitnami-wordpress-5.x.x-linux-x64.run
sudo /opt/bitnami/ctlscript.sh restart
sudo ufw allow OpenSSH
sudo ufw allow 80
sudo ufw allow 443
sudo ufw enable

That is the gist. Bitnami saves you a lot of manual wiring but you still need to be responsible for updates security and backups. If you enjoy living dangerously you can skip the backups but do not say I did not warn you.

I know how you can get Azure Certified, Google Cloud Certified and AWS Certified. It's a cool certification exam simulator site called certificationexams.pro. Check it out, and tell them Cameron sent ya!

This is a dedicated watch page for a single video.