WordPress has been around since 2003 and has evolved to be the most popular open source content management systems. It powers nearly 30% of the world’s website and it can also be used to build different platforms such as E-commerce website, Blogs, Content platforms, learning management system and can be customized by experts to do certain things.
It is powered using PHP and Mysql database. WordPress installation can be seamless and almost all the website administration can be done from the website’s front end.
In this guide, we will focus on how to install a WordPress set up on Linux, Nginx, MySql, and PHP (LEMP) Stack on an Ubuntu 16 server.
We will assume that:
- You have installed Ubuntu 16.04 server with a root access following installing Ubuntu server with Whogohost.
- A domain name is registered and pointed to the server’s IP address.
- Nginx is installed on the server.
- You know how to use Linux editors (nano, vim).
- You have access to the root
- Secure your site with SSL: WordPress CMS serves dynamic contents and handles authorization and authentication of users so it’s imperative to install SSL for your domain.
When you are sure that the above is ready, we can begin with the setup.
Creating a Mysql database.
We have MySQL installed on our Ubuntu LEMP stack, but we will need to create a database and user for the WordPress installation and storage of information. You will be required to enter the password you set for Mysql database during installation.
You should run the following command to create the database. The name of the database we created is WordPress but you are free to use any name you are comfortable with.
mysql> CREATE DATABASE wordpress DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
NB: You should ensure that you end your code with a semi-colon
The next thing we will do is to create a user and password in our new database.