tutorials questions & answers
by Mark

Installing and Configuring Wordpress on an Ubuntu 14.04 64bit Server

TAGS:
  • wordpress
  • ubuntu
  • mysql

Wordpress installation on ubuntu 14.04

Overview

This article will teach you how to install wordpress on Ubuntu 14.04 with Apache and Mysql server.

You will need the wordpress files that you can freely download at https://wordpress.org/download/.


Prerequisites

The tutorial will assume that:

  1. You have an Ubuntu 14.04 64bit vps server from vpsserver.com. If you dont have, you can get one from https://www.vpsserver.com/plans/
  2. You have logged into your vps server using an ssh terminal.
  3. You have already configured Apache, PHP and Mysql. If not, please go to this page to learn how to install and configure LAMP server on Ubuntu 14.

Create a database using Mysql

Login to your mysql server using the command:

mysql -u root -p

Then create a database by following the commands. For this tutorial we will create a database named "orders_newdatabasename" with a user "orders_dbuser" and password of "mynewpassword".

You will have to write down this information since we will use it later on.

CREATE DATABASE wordpress_sample;

CREATE USER wp_user@localhost IDENTIFIED BY 'wp_password';

GRANT ALL PRIVILEGES ON wordpress_sample.* TO wp_user@localhost;

Flush all privileges to re-read the users files:

FLUSH PRIVILEGES;

then exit mysql:

exit


Installing Wordpress

To install wordpress we have to download the latest wordpress source from their website at https://wordpress.org, but before doing that we have to nagivate to the /html folder first where we will download our Wordpress zip file.

cd /var/www/html/

and download the latest wordpress files:

wget https://wordpress.org/latest.zip

Now, we have to install unzip to unpack our wordpress files:

apt-get install unzip

Unzip the wordpress files in the /var/www/html directory:

unzip -q latest.zip

And then we set the appropriate permissions for the directory:

chown -R www-data:www-data /var/www/html/wordpress

chmod -R 755 /var/www/html/wordpress

Then we will need to create an /upload directory beneath /wp-content folder so we can make contents and upload files into it.

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

Finally, we will need to allow the web server to read and write to this directory. we will have to assign user and group ownership to the files, we can do that by:

chown -R www-data:www-data /var/www/html/wordpress/wp-content/uploads

Yes! wordpress is installed, now we have to configure our wordpress so we can actually use it.


Configuring Wordpress

To configure wordpress on Ubuntu, go to your favorite web browser and head to the address of your server. My server address is 10.10.45.52 so I will go ahead to http://10.10.45.52/wordpress/.

You will see the wordpress configuration page, first up is the language configuration. From here you can select which language you prefer.

enter image description here

Next, you will have to enter your database information. The information that you wrote download when creating a database will be used here.

enter image description here

If the database information you entered is correct, wordpress will inform you that it can now communicate with the database. If not, you will have to enter the database information again while making sure all information is correct.

enter image description here

Once your database details are confirmed to be correct wordpress will ask you some information such as your site title, your administrator username and password.

enter image description here

If all is good and no errors occur you can now login to the Wordpress administration area to add your theme, plugins and more users.

enter image description here

Thats all of it! I hope you learned a lot on this tutorial and if ever you have some questions or some ideas you can share please do not hesitate to comment below.

comments (1)

    Start now for as low as $2,99 a month!

    • 8 Characters2
    • 1 Uppercase Atleast
    • 1 Number Atleast
     
    Open livechat