WordPress Basics

In this post I will provide instructions to install WordPress on ubuntu server.  This tutorial is aimed at those users who may want to install WordPress on a virtual server for development purposes.

A prerequisite for installing WordPress on your server, you will need to configure a LAMP server.  Once you have a configured your LAMP server, I also recommend you install PHPMyAdmin.

With the prerequisites out the way, you’re ready to get underway with installing WordPress on your ubuntu server.

I recommend connecting to your server via SSH, and executing the following commands:

Get WordPress

Download the latest release of WordPress your user home directory.

Once the download is complete, uncompress the folder.

Delete the Index.html from the default Apache folder.

Move the uncompressed contents to the default Apache folder

Create Database

We will need to create the WordPress database. We’ll do this directly in mySQL.

Create the database and call it whatever you want. In my case I have just called it wordpress

Create a User, again this can be any name of your choice, I have chosen wpusr and any password of your choice

Give the user full access to the newly created database

Refresh the database permissions table and exit.

Configure WordPress

We will now need to make amendments to the WordPresss configuration. First, we’ll need to make a copy of wp-config-sample.php and create a new wp-config.php file.

Now edit the config file using the any text editor, in my example I have used nano

Change the permission of WordPress folder so that it functions correctly.

In order to be able to install any plugins or new themes on WordPress install you will need to enable the FTP server settings.

We’re almost ready to go now, all we need to do is restart the web server.

You’re now ready to access the WordPress site by navigating to it in your browser  i.e.  http://192.168.0.3 ,  or whatever the address of DNS of your server is configured to.

 

 

Gary Woodfine

Helps businesses by improving their technical proficiencies and eliminating waste from the software development pipelines. A unique background as business owner, marketing, software development and business development ensures that he can offer the optimum business consultancy services across a wide spectrum of business challenges.

π