How do I download and install WordPress on Ubuntu 18.04 Using LAMP Stack

May 28, 2019July 12, 2019 by admin

WordPress is, truly, the most broadly utilized blogging stage on the planet. In any case, the device can be utilized for considerably more than simply blogging. With the correct expansion of augmentations, you can transform WordPress into a web based business website, a mixed media webpage, and substantially more. On the off chance that you happen to have your very own server, you can have a WordPress establishment, without hosting to go to a third get-together. Furthermore, that is actually what we will do here. In this instructional exercise, you will figure out how to introduce the vital segments just as the WordPress stage on Ubuntu Server 18.04. This will just expect a certain something: That you have Ubuntu Server going.

Conditions

The main activity is to get our LAMP (Linux Apache MySQL PHP) server fully operational. Since Ubuntu is as of now there, every one of that should be done is introduce the optional segments. Since we’re utilizing Ubuntu, this should be possible with a solitary direction. In any case, before we do that, we need to ensure our server is exceptional. Open a terminal window and issue the accompanying directions:

Install and Configure Apache 2

LAMP uses Apache web server 2 which is popular and widely used. You can install Apache using Ubuntu’s package manager as shown below:

sudo apt update
sudo apt install apache2

These commands require you to provide passwords. Press Y on the command prompt and hit ENTER to continue the installation.

UFW firewall is available in all the Ubuntu installations by default. The UFW firewall should allow HTTP and HTTPS traffic. If you don’t use UFW, feel free to skip this step. You can check the UFW application profiles using the following command:

sudo ufw app list

This will provide an output as:

Available applications:
Apache
Apache Full
Apache Secure
OpenSSH

To allow HTTP and HTTPS traffic for Apache Full profile you can execute the command below:

sudo ufw allow in "Apache Full"

To confirm this, have a look at this profile information by using:

sudo ufw app info "Apache Full"

To verify if Apache was installed correctly, you would need the public IP address. You can get it by using the command below:

ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//'

This command will provide you with 2-3 IPs. You might have to try all of this by using http://your_public_IPAddress on a browser. It will display the default Ubuntu Apache page.

Install MySQL

Once you have the web server running, you can install the MySQL database. The command below will help you with the task:

sudo apt install mysql-server

This command will prompt for a password. Once the installation starts, based on your requirement you can press Y and ENTER which completes the installation. Open MySQL terminal using: