How To Install WordPress with LAMP on Ubuntu 16.04

wordpress

Share this article

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.

Requirements

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.

Related Posts

How to Create Websites Easily with GO54 AI Builder: No Coding Needed

Introduction In today’s digital age, having a strong online presence is non-negotiable for businesses and individuals alike. However, for many, the prospect of creating a...

WhoGoHost is now GO54: Here’s why we rebranded and what it means for Businesses in Africa.

In the ever-evolving landscape of digital empowerment, our journey has been one of transformation and growth. Today, we are excited to announce the next chapter...

Mastering Gmail: Advanced Email Management Techniques

Gmail has revolutionized the way we handle email, providing us with a powerful platform for communication and productivity...