Installing wordpress on localhost in ubuntu

You are looking to install wordpress on localhost Ubuntu, even multiple blogs at once?
You can make install wordpress through BitNami but that's just how the current set is 1 wordpress blog only. This article I will guide you to install multiple wordpress blog.

1. Install XAMPP on ubuntu

This is the first step, you need to have it done is new. You see article Install XAMPP on ubuntu

2. Download WordPress

In this step we need to change the contents of system folders so you have to open the file manager (the nautilus in ubuntu) with administrative rights following.

sudo nautilus

Then you go /opt / lampp / htdocs / create 1 directory to contain our website. VD as creating folders nguyenvanquan7826

Now you go https://wordpress.org/ to download the latest wordpress.
Unzip it into wordpress directory, you copy the entire contents of the directory wordpress to /opt / lampp / htdocs / nguyenvanquan7826

download wordpress

3. Create a database for website

Website wordpress our needs 1 mysql database to store the content of the article, Comment,…
We have to http://localhost/phpmyadmin/ to create the database.

phpMyAdmin

create database

Have you noticed that when creating our database not put passwrod for it and The default user is root.

4. Install WordPress

Everything was prepared, Now we install only.

You visit http://localhost/nguyenvanquan7826/ (nguyenvanquan7826 which is newly created directory in /opt / lampp / htdocs / contains wordpress) will appear interface lets start installing blog.

start install wordpress

In this step you fill newly created database, user là root, no password và click Submit
info blog

create wp-config

By this stage we need to create the file wp-cofnig.php /opt / lampp / htdocs / nguyenvanquan7826 / but it can not be done through the browser. We turn to do the following:

B1: Create a command file wp-cofnig.php

sudo gedit /opt/lampp/htdocs/nguyenvanquan7826/wp-config.php

B2: Gedit text editor to open up 1 The new file is wp-config.php, you copy the entire code in the browser frame and paste it. Save (Ctrl + S) and closed.

B3: Click your browser Back and Run the install browser, we began to fill the blog.

info blog

blog login

After logging in, this is the result of our – A wordpress blog on localhost

my blog

To install your blog to repeat the last step as we did from the copy of wordpress inclusion of the new folder you want to create a new blog

Posts made in series PHP programming guide

Read more:
Install XAMPP on Ubuntu
Fix Mysql # 2002 – No such file or directory
Fix 403 Forbidden on xampp