By Wayne Knight
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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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:
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
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.