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

Freelance Full Stack Developer at threenine.co.uk
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.

Affiliate Disclaimer

Disclosure: Please note that some of the links included in the blog posts are affiliate links, which means I will earn a commission if you decide to make a purchase.

I only include affiliate links to products, services and companies that I have personal experience and have actually used. I only recommend them because they are helpful and useful, not because of the small commissions I make if you decide to buy something.

Please do not spend any money on these products unless you feel they are relevant, suitable and will help you achieve your goals.

Buying anyone of these products and the commisions earned will not make me an overnite multi millionaire, but they will help to cover the hosting costs and compensate for the countless hours and effort I put in to create meaningful and valuable free content I provide to help others succeed.

You've also undoubtedly noticed that I also use various advertising networks - unless of of course you're using an Ad blocker, this is also an attempt to reduce my monthly deficit I experience in providing free relevant, valuable and on occassion insightful content for the benefit of others.

I only really make some money if people click on the ads, unless of course you consider 1c per 1000 impressions real money!

Bear in mind just how many impressions I need to make before I can cover my £20 hosting costs a month!

If you are using an adblocker and guilt stricken you can of course donate using any of the buttons below, but I won't be holding my breath.


Buy me a coffeeBuy me a coffee
π