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.

×
2 answers

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

by Erika Heidi
The LEMP software stack is a group of software that can be used to serve dynamic web pages and web applications written in PHP. This is an acronym that describes a Linux operating system, with an Nginx (pronounced like “Engine-X”) web server. The backend data is stored in a MySQL database, and dynamic processing is handled by PHP. In this guide, we'll set up a LEMP stack on an Ubuntu 20.04 server.
  • Thanks. I already have the LEMP setup guide but I couldn’t find a guide specific for Wordpress with LEMP on Ubuntu 20.04. There is one for Wordpress with LAMP, but not LEMP and there is one for Wordpress with LEMP on Ubuntu 18.04 but not 20.04.

    • Hey @wrknight,

      Yes, I believe that the Ubuntu 18.04 tutorial should work as well. But make sure to let me know if you hit any issues!

      Regards,
      Bobby

      • Haven’t gotten to Wordpress yet. Just finished setting up and testing the LEMP server (which is working properly). Hope to get to Wordpress tomorrow or Wednesday. Will follow the guide and let you know how it works out.

        • Unfortunately, something went wrong. I installed wordpress and followed all the instructions for setting up the wordpress database but in trying to open wordpress I get an error message that it cannot access the database.

          After following the instructions for setting up the database and user access, the wordpress database appears empty and unaccessible.

          I used the following instructions in setting it up.

          mysql>CREATE DATABASE wordpress;

          USE wordpress;

          GRANT ALL on wordpress.* TO ‘me’@'localhost’ IDENTIFIED BY 'mypswd’;

          FLUSH PRIVILEGES;

          After doing that, the user and password is created in the mysql database but not for the wordpress database and when you use the command

          SHOW TABLES;

          it returns 'empty set’.

          • Hey @wrknight,

            Yes, that is expected, the commands that you’ve shared will create a MySQL database and a MySQL user. Then the Wordpress installation is going to create the tables.

            Once you’ve created the database, visit your domain name or IP address via your browser and you will see the following screen where you can add your database details:

            Wordperss installation step

            If you are getting the database connection error, you would need to adjust your database details in your wp-config.php file and make sure that they match the ones that you’ve created with the MySQL commands.

            Let me know how it goes.
            Regards,
            Bobby

Show answer This answer has been marked as resolved by wrknight.
Submit an Answer