How to install WordPress on Ubuntu 18.04 LTS?

0
1219
Wordpress
Wordpress

Nowadays many people decide to create a blog to write about many topics. Some of these blogs are about technology or other topics. In this sense, WordPress is a very popular application for the creation of blogs. Therefore, this article is about how to install WordPress on Ubuntu 18.04 LTS.

For the creation of blogs there are several alternatives such as Blogger, however, it is not reckless to say that WordPress is the most popular and robust solution in its field.

This is because in WordPress you don’t need programming skills to build your website. On the other hand, it is open source which guarantees its growth and community support. It is also quite customizable and has extensive technical support.

In addition to WordPress, the creators of Blog choose Ubuntu 18.04 LTS to install all its content there, because it is a new and robust version of the most popular distribution in the world.

Let’s install WordPress on Ubuntu 18.04 LTS.

1. Upgrade the system

Before you start installing WordPress you must make sure that the system is up to date. With this you will have the latest security patches and the system will be more reliable and stable. To do this, run the following command.

1.- Upgrade the system
1.- Upgrade the system

It is always advisable to do this periodically.

2. Install Apache web server

WordPress itself is a web application. Therefore, you need a web server that allows its execution. There are several very good ones like Ngnix or Apache web server. I will use the last one.

2.- Installing apache web server
2.- Installing apache web server

Now, enable and start the Apache web server service.

3.- Enabling the apache service
3.- Enabling the apache service

The goal of this is to make apache boot when the system boots.

Now, open your web browser and go to http://IP_SERVER

4.- Apache web srever default page
4.- Apache web server default page

If you see the image above, apache is correctly installed.

3. Install PHP

In this step, you have to install PHP. This in order to be able to run WordPress properly. In addition to the language, it is necessary to install some additional modules.

5.- Installing PHP
5.- Installing PHP

Now it’s time to check that PHP is working.

Create a file called test.php on /var/www/html/ directory.

And add the following:

6.- PHP test file
6.- PHP test file

Next, open the file through the web browser http://IP_SERVER/test.php

7.- PHP is working
7.- PHP is working

Finally, PHP is working fine.

4. Install MariaDB

WordPress requires for its operation the installation and configuration of a database manager application.

MariaDB is a great alternative for this since it is free and above all stable. It is also compatible with MySQL as it is a fork of MySQL.

8.- Installing MariaDB
8.- Installing MariaDB

Then, enable the service and start the service.

9.- Enabling MariaDB service
9.- Enabling MariaDB service

Now, you need to configure a root key for MariaDB. You can also configure other things there. To do this, run the mysql_secure_installation script.

10.- Using the mysql_secure_installation script
10.- Using the mysql_secure_installation script

11.- Using the mysql_secure_installation script to configure MariaDB
11.- Using the mysql_secure_installation script to configure MariaDB

As you can see, I said Y, N, Y, Y to the questions.

Once MariaDB is correctly installed and configured, it is necessary to create the database and the WordPress user.

12.- Creating the database for wordpress
12.- Creating the database for wordpress

Now, you can install WordPress.

5. Install WordPress

The time has come to install WordPress. First, download it.

13.- Download and install WordPress
13.- Download and install WordPress

Now, decompress the file.

14.- Decompressing the file
14.- Decompressing the file

Then move the folder to /var/www/html. Next, change the folder owner and assign permissions.

Now, you can complete the installation from the web interface.

6. Completing the installation

Now, through the web interface, it is necessary to complete the installation. Go to http://IP_SERVER/wordpress and you will see the following.

15.- WordPress Installation
15.- WordPress Installation

In the next step, you will have to enter the information corresponding to the database.

16.- Adding some information to installer
16.- Adding some information to the installer

Then you can continue with the installation.

17.- Continuing the installation
17.- Continuing the installation

Then, enter the information from your website or blog that you want to create. You also have to create the username and the password.

18.- Add your website information
18.- Add your website information

When you continue, you will get the screen to log in, with the admin user and the password you defined.

19.- WordPress login
19.- WordPress login

And finally, you will see the WordPress dashboard.

20.- WordPress dashboard
20.- WordPress dashboard

And that’s it.

Conslusion

If you want to create a blog or a personal web site, I think your first option to do so is WordPress, because its installation is not complicated, and because it is free. All this without losing robustness and power.

Please share this article with your friends.

 

 

Spread the love
  • 5
    Shares

PS. If you like this post please share it with your friends on the social networks using the buttons above.Thanks.

LEAVE A REPLY

Please enter your comment!
Please enter your name here