Installation and Configuration of WordPress ( under localhost ) in Linux Mint 17 (Ubuntu)

Installation and Configuration of WordPress ( under localhost ) in Linux Mint 17 (Ubuntu)

Installation and Configuration of WordPress ( localhost ) in Linux Mint 17 (Ubuntu) :

Must See : Install LAMP Stack Linux Mint 17 With Tasksel

First LAMP to Install and configure on Your system.
To start, connect to MySQL root (Administrator) Account by the Output of this Command:

mysql -u root -p

Type this Command to create the Database:

Create database wordpress;

I’m going to call the new Account that I wordpressuser and assign it a Password the Password. You must, in all Cases, change the Password for the installation and the Name of the User, all that You want.

This is the Command that You need to create a User:

CREATE USER wordpressuser@localhost identified BY ‘Password’;

At this point, You have a Database and a User Account, each one specifically for WordPress.

We solve that by Granting our User Account Access to our Database using this Command:

GRANT ALL PRIVILEGES ON wordpress.* To wordpressuser@localhost;

Now, the User has Access to the Database. We need to Flush the Permissions so that the current Instance of MySQL knows about the most recent Privilege changes we have made:


We all are now. We can exit the command Prompt MySQL by Typing:


Now, You should go back to Your regular command Prompt.

Then, we will download the latest Files of WordPress from the Project’s web site.


We can extract the Files to rebuild the WordPress folder, we need by Typing:

tar-xzvf latest.tar.gz

This creates a Directory called wordpress in Your home Directory.

While we are downloading Things, we also need a few more Packages that we need.

sudo apt-get update
sudo apt-get install php5-gd libssh2-php

Start by You in the WordPress folder, just unpacked:


Next, you will Create a new config File .

cp wp-config-sample.php wp-config.php

Now, we have a Configuration File to work with, we are going to open in a text editor:

sudo gedit wp-config.php

Find and Edit the Settings for DB_NAME, DB_USER and DB_PASSWORD, so WordPress correctly to connect to and authenticate to the Database that we have created.

To copy Files to the Server as root :
sudo rsync -avP ~/wordpress/ /var/www/html/

cd /var/www/html

Let us first create manually the unlimited photo sub-Directory wp-content Directory at our Document root. This is the parent Directory of the Content:

mkdir /var/www/html/wp-content/uploads

Go to “localhost” in the internet browser and install wordpress.