How to setup a local dev environment for your blog

by admin

in Computers, Tutorials

wampserverWhy do you need a local development environment ? Be it coding work or just theme development work, we need to make sure that the live blog doesn’t get affected by your development work. One of the widely accepted idea is to setup a local environment mirroring the same settings as your web server. In this way, we are completely detached from our live blogs and are free to perform any modifications we want.

How do i create a local dev environment for wordpress ? There are three steps in creating your own local environment:-

  1. Setting up the web server.
  2. Setting up the database .
  3. Installing Wordpress

1. Setting up the web server: In this step we are going to setup the webserver, install PHP, MySql. We’ll use a package called WAMP. which already has Apache2, PHP, MySql already integrated into it. So, if we install this WAMP we would have installed all the things we are going to need for installing wordpress. You can download WAMP here. Once you have downloaded it, go ahead and install it. When installing, use the default options.  The installation is pretty straight forward. Once the installation is complete, c:/wamp/www will be your web server’s directory. Now we can proceed to database creation and wordpress installation.

2.Setting up database and installing wordpress: Start the WAMP server by clicking on Start > programs > wampserver > start wampserver. Once you have started the wamp server, look at the taskbar beside the system time. You should find a icon which looks like a  speedometer. Click on it and select phpMyAdmin. phpMyAdmin will open and you should get a screen similar to the one shown below.

phpMyAdmin

phpMyAdmin

Now under MySQL localhost, create a new database, enter the name of the database you want to use for wordpress installation and click on create. You have just created a new database. The connection information for this database will be as follows;

Server: localhost

Username: root

Password: [no password - empty]

3.Setting up Wordpress: We know how to do this, don’t we ? Download the newest release of wordpress and extract the files to c:\wamp\www and proceed with the installation. Click here if you need more information on installing Wordpress. Once you have completed all the steps in this tutorial, we have established a completely offline wordpress development environment.

Related Posts

1.Best social bookmarking plugins for wordpress

{ 1 trackback }

How to create a unique theme for your blog ?
August 2, 2009 at 2:34 am

{ 0 comments… add one now }

Leave a Comment

Previous post:

Next post: