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.
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.
Click below to sign up and get $100 of credit to try our products over 60 days!
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