Question

How to set up Wordpress with LEMP on Ubuntu 20.04

Is there any difference between setting up Wordpress with a LEMP stack on Ubuntu 20.04 and setting it up on Ubuntu 18.04?

I have Wordpress running with a LEMP stack on Mint 18.04 now but need to upgrade it due to Mint’s short life cycle. (Support ends in April '21.) If there’s no difference in procedure, I can use the same instructions I used before.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Database access error solved. It appears that the instructions I followed (above) do not work for the version 10.3 of mariadb. After creating the database with

CREATE DATABASE wordpress;

it is necessary to create a user with

CREATE USER ‘me’@‘localhost’ IDENTIFIED WITH ‘mypswd’;

then

GRANT ALL ON wordpress TO ‘me’@‘localhost’;

This appears to be a recent change as I did not have to do that with mariadb 10.1 and it was not necessary with mysql 5.7.

Hi there @wrknight,

Yes, the setup and the configuration files are quite the same indeed.

I could suggest following the steps from this tutorial here on how to set up your LEMP stack on Ubuntu 20.04:

https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-20-04

After that, you could copy your Nginx configuration files from your old server to the new one along with your WordPress files and database and it should work as normal on the new system.

Hope that this helps! Regards, Bobby