Install WordPress ubuntu Desktop

Developing functionality for WordPress will require you to set up a local development instance. Unless you want to be a cowboy and do everything live straight on your production server!
It is possible to set up WordPress on any of the leading operating systems i.e. Windows, Mac and Linux. However our favourite operating systems are  Ubuntu Linux and Mac OSX.

 

How to install WordPress on Ubuntu Desktop

In this tutorial we’ll walk you through setting up a simple development environment on ubuntu desktop..

 

WordPress typically runs on the LAMP stack, (Linux , Apache, MySql and PHP), so you will first need to install the LAMP stack on your Ubuntu Desktop .

 

Once you have completed the installing the LAMP stack,  need to do some basic checks. First we’ll want to check the version of PHP.

 

We’ll first create a new PHP file to get the info

 

Open the file in your favourite text editor. We’ll use nano

 

Then add this simple PHP script

The Ctrl + x to exit and save

 

The open up your browser and navigate to http://localhost/info.php you should see a page similar too:

 

PHP Info

It’s also advisable to follow Best Practices and Secure your mySQL installation:

 

Follow the instructions and REMEMBER THE PASSWORD!  We’re going to use it shortly.

 

Next we’re going create the mySQL database for our WordPress

 

You’ll be asked for the password

 

Now create the database

 

Now we can exit Ctrl and C

 

Now we need to do some configuration on the Web Server to get ready to install WordPress

 

We’ll need to give Apache access to the HTML directory:

 

Then add your username to the Apache group

 

For all the too take effect you will now need to login and logour or simply reboot

 

We will now nee to set read/write/execute permissions for the Apache group

We’re now Ready to download and  install WordPress

 

Download the latest copy of WordPRess

Extract it

 

Delete the Index.html from the apache folder

 

Now move the extracted files to Apache Folder

 

Change ownership on the directory

If you go to http://localhost/wordpress You should see the installation Wizard.
It’s now just a case of clicking “Create Configuration File” then “Let’s go” and entering appropriate details

Gary Woodfine

Founder & CTO of threenine.co.uk. Experienced full stack software developer well versed in delivering web & mobile applications utilizing cloud architectures. Areas of speciality include cross platform development in .net , PHP, JavaScript.

  • “sudo chmod -R 775 /var/www/ .”
    Really?

    • This is for development on your local box. I think this is clearly stated within the article.

      • This will chmod everything in your present directory. Remove the space.

        • to be honest , you should be making use of virtual directories anyway. `But as I said this is purely for a dev desktop vm, with the aim of setting up wordpress for a local dev, instance. So you can set the permissions to whatever you want. The scope of this tutorial is does not include a guide on how to securely configure an apache web server.

π
%d bloggers like this: