You are here:
  • KB Home
  • mysql
  • Using an Ubuntu 14.04 64-bit server to install and configure WordPress

Using an Ubuntu 14.04 64-bit server to install and configure WordPress

Using an Ubuntu 14.04 64-bit server to install and configure WordPress

Overview

This article will guide you through the process of installing WordPress on Ubuntu 14.04 with Apache and MySQL servers.

Ensure you have the WordPress files, which you can freely download from https://wordpress.org/download/.

Requirements

The tutorial assumes the following:

  1. You possess an Ubuntu 14.04 64-bit VPS server from blendhosting.com.
  2. You have logged into your VPS server using an SSH terminal.
  3. Apache, PHP, and MySQL have been previously configured. If not, refer to this page for instructions on installing and configuring a LAMP server on Ubuntu 14 [1].

Construct a database with MySQL

Use the following command to log into your MySQL server:

mysql -u root -p

Create a database by executing the provided commands. In this tutorial, let’s create a database named “orders_newdatabasename” with a user “orders_dbuser” and a password of “mynewpassword.”

Ensure to note down this information, as it will be used 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 user files by executing the appropriate command.

FLUSH PRIVILEGES;

Next exit mysql:

exit

WordPress Installation Guide

To install WordPress, download the latest WordPress source from their website at https://wordpress.org. Before doing that, navigate to the /html folder where we will download our WordPress zip file.

cd /var/www/html/

and get the most recent WordPress files:

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

Now, install unzip to unpack our WordPress files.

apt-get install unzip

Unzip the WordPress files located in the directory /var/www/html.

unzip -q latest.zip

Subsequently, set the appropriate permissions for the directory.

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

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

Next, create an /upload directory within the /wp-content folder to facilitate content creation and file uploads.

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

Finally, enable the web server to read and write to this directory by assigning user and group ownership to the files. This can be achieved by:

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

WordPress is now installed. The next step involves configuring WordPress to make it functional for use.

Setting up 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.

 

[1]: https://www.blendhosting.com/kb/set-up-an-ubuntu-14-04/

Was this article helpful?
Dislike 0