Atlantic.Net Blog

How to Install WordPress on a Ubuntu 14.04 LTS Cloud Server

Brendan Bonner
by Atlantic.Net (39posts) under Cloud Hosting
WordPress Illustration by Walker Cahall

WordPress Illustration by Walker Cahall

Verified and Tested 06/15/15


This how-to will take you through installing WordPress on Ubuntu 14.04 LTS. WordPress is a content management system which is free and open source. Since it is open source, there are a numerous amount of themes and plugins that are readily available to you. Although it is typically used as a blogging platform, it can be used for many other uses.


To install WordPress, a Ubuntu 14.04 server running LAMP or LEMP is required. Please see our how-to guide for installing LAMP or LEMP. If you do not have a server, you can get a trusted cloud server from Atlantic.Net, or use our One-Click WordPress installation.

Installing WordPress on Ubuntu 14.04

Installing WordPress is very simple if you follow these steps. We will first start off by setting up the MySQL database.

Setting up the MySQL database in Ubuntu 14.04

We are going to start off by setting up the MySQL database by running the following commands:

mysql -u root -p

When prompted, enter your MySQL root password that you set up when installing MySQL.

In MySQL enter the following commands:

create database wordpress character set utf8 collate utf8_bin;

Make sure you set your secure password where it says [insert-password-here]

grant all privileges on wordpress.* to [email protected] identified by "[insert-password-here]";
flush privileges;

Get the Latest WordPress Install on Ubuntu 14.04

Now that the database is created, we can download the latest version with the following command:


The latest package will download to the directory that you are currently in, with the file name latest.tar.gz. We need to decompress the file by running:

tar -xzvf latest.tar.gz

Configure WordPress on Ubuntu 14.04

Next, we need to copy wp-config-sample.php to wp-config.php which is where it gets its base configuration. To do that, run:

cp wordpress/wp-config-sample.php wordpress/wp-config.php

In your favorite text editor, edit wordpress/wp-config.php

For a basic setup, we need to have the following.

define(‘DB_NAME’, ‘wordpress’);

define(‘DB_USER’, ‘wordpressuser’);

define(‘DB_PASSWORD’, ‘[insert-password-here]’);

It should look like this when completed:

What wp-config.php should look like once you have edited it

What wp-config.php should look like once you have edited it


Next, we need to move the WordPress folder to your web directory.

cp -r ~/wordpress/* /var/www/html

Note: Your web directory may be different based on your configuration.

Finish The Installation Through The WordPress Web Installation.

Now, we can go to the WordPress web installation. In your browser go to http://yourhostname-or-ipaddress

If you are unsure what your IP address is, run the following:

An example of using ifconfig to show the IP address of your server

An example of using ifconfig to show the IP address of your server


In our example, we would put in the address bar and get the following page.


An example of the WordPress web installation

An example of the WordPress web installation


From here all that is needed to do is to follow along with the WordPress install and give the information required.

Congratulations! You have just installed WordPress on Ubuntu 14.04, check back for more updates. For more information, you may want to check out the WordPress Codex.

Get started with 12 months of free cloud VPS hosting

Free Tier includes:
G2.1GB Cloud VPS Server Free to Use for One Year
50 GB of Block Storage Free to Use for One Year

New York, NY

100 Delawanna Ave, Suite 1

Clifton, NJ 07014

United States

San Francisco, CA

2820 Northwestern Pkwy,

Santa Clara, CA 95051

United States

Dallas, TX

2323 Bryan Street,

Dallas, Texas 75201

United States

Ashburn, VA

1807 Michael Faraday Ct,

Reston, VA 20190

United States

Orlando, FL

440 W Kennedy Blvd, Suite 3

Orlando, FL 32810

United States

Toronto, Canada

20 Pullman Ct, Scarborough,

Ontario M1X 1E4


London, UK

14 Liverpool Road, Slough,

Berkshire SL1 4QZ

United Kingdom


We use cookies for advertising, social media and analytics purposes. Read about how we use cookies in our updated Privacy Policy. If you continue to use this site, you consent to our use of cookies and our Privacy Policy.