How to Install WordPress with LEMP on Ubuntu 26.04

To install WordPress with LEMP on Ubuntu 26.04, set up Nginx, PHP-FPM, and MariaDB first, then WordPress on example.com.

Step 1 : You need Nginx, PHP-FPM, and MariaDB first (see those guides).

Step 2 : Open the MariaDB shell.

Step 3 : Create the database and user (change strong_password if you want).

Step 4 : Download WordPress into the site root.

Step 5 : Point the server block root at /var/www/example.com (Server Blocks guide), or:

Step 6 : Enable the site, test, and restart.

Step 7 : Open the site, choose a language, then Continue.

Step 8 : Set up the database.

  • Let's go!

  • Database name wordpress, username wordpress, password strong_password, Database Host localhost → Submit

  • Run the installation

Step 9 : Site Title, admin user, password, email → Install WordPress.

Step 10 : Open the login page.

Step 11 : Log in as admin and open the dashboard.

You have installed WordPress with LEMP on Ubuntu 26.04.