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 for local development
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
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:
It’s also advisable to follow Best Practices and Secure your
Follow the instructions and REMEMBER THE PASSWORD! We’re going to use it shortly.
You’ll be asked for the password
Now create the database
Now we can exit ( ctrl + 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/writ/execute permissions for the Apache group
We’re now Ready to download and install WordPress
Download the latest copy of WordPRess
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
Latest posts by Gary Woodfine (see all)
- Why every business needs a web maintenance retainer - March 11, 2019
- 8 Plugins you need for your WordPress Website 2018 - July 1, 2018
- Why We Buy – The science of shopping - May 15, 2018