Install WordPress Locally 1 Of 2
Thanks for visiting! If you're new here, you may want to subscribe to our RSS feed. This blog posts regular Wordpress news, updates of themes, plugins, ideas, hacks, quick fixes and everything about blogging, especially about Wordpress. Go ahead, subscribe to our feed! You can also receive updates from this blog via email.

Welcome to part one of a two part series of articles that will guide you through the process of installing a fresh copy of WordPress or your public WordPress blog to your local machine. The first part of this series will guide you through the installation and configuration of a piece of software called WampServer. Why would you want to do this you ask? Having your WordPress blog installed on your local machine not only acts as a backup, but it gives you the option of really digging into the inner workings of your blog without having to worry about it breaking and therefor, rendering the thing useless to the public. Not only that, but it’s much faster to play with things on your local machine than it is with a LIVE site on the internet.
For this article, I am using Windows XP Service Pack 2 and something called WampServer. WampServer is a piece of software that installs everything you need to turn your PC into a webserver. This includes Apache, MySQL, PHP, SQLitemanager and PHPMyAdmin. Before we get started, head on over to the official WampServer download page and grab a copy of WampServer 2.
WampServer Installation:
The installation process is pretty simple. After accepting the license agreement and specifying where the WampServer files will be installed to, the installation file will be unpacked, doing all of the heavy work for you. Using a software application such as WampServer to install all of your webserver needs for you automatically, is the easiest way to turn your machine, into a web server. Once the installation is finished, you’ll be prompted to locate your default browser executable file. In my case, I had to direct the install to my FireFox executable file which is usually within the Mozilla folder.
One of the first things you’ll have to configure is the PHP mail parameters. For SMTP, the default value of localhost is correct. As for the email address, you can choose to type one in, or not. This can always be changed later. Once this setting is configured, you’ll be greeted with a confirmation box that tells you the installation of WampServer has been completed. Leave the option “Launch WampServer 2 now” check marked and click the finish button.

Configuring WampServer Files:
One important piece of information I have to mention. The webserver acts on port 80 which is the port responsible for HTTP traffic. If you are running Skype with it’s default configuration, you’ll notice that your Webserver is offline once you start the program. This is because by default, Skype uses port 80 and 443 for incoming connections. You can either change the port that Skype uses or you can close, then re open Skype after your Webserver is online, forcing Skype to use a different port. In essence, make sure port 80 is clear before you launch WampServer or else the Apache web service will not run.
I’ve also been informed by ayusli that will you also need to disable IIS if that is running on your system. If you don’t, you may not be able to access localhost.

Once your WampServer is online, you’ll need to edit a few files to change the configuration to allow for larger databases to be imported. These changes will take place within the PHP.ini file. The PHP.ini file is a text file that contains the configuration for the PHP programming language. The first thing you’ll need to change is the upload_max_filesize attribute. By default, this is set to 2Megabytes. This is too small of a value, so increase this to 50 or 100megs. It doesn’t need to have a specific value so long as it is larger than the size of the database file you will be importing later on in this guide. The other setting you’ll need to change is post_max_size. By default this is set to 8Megabytes. Change this to the same value as the upload_max_filesize limit. After you make this change, reboot your computer. This will ensure the changes you made to the php.ini file take effect.
End Of Part 1:
If you plan on doing a fresh install of WordPress, you won’t have to worry about making any changes to the PHP.ini file after you install WampServer. However, if you plan on taking a copy of your public blog and transferring it to your local machine, the changes described above need to happen or else you will likely run into problems such as your database file being too large to import.
Part 2 of this series will go into details on how to install a fresh copy of WordPress as well as how to transfer your existing WordPress blog on the internet onto your local machine. It’s not as easy as transferring the database and then extracting a backup of files into a folder. There are a few more required tricks that need to be performed before a public blog can be successfully transferred. Look for these tips in part two which should be published in the next few days.


(23 votes, average: 4.26 out of 5)











Comments RSS
This is something I have been doing for quite some time except I use XAMPP. It’s great for not only maintaining a backup but for experimentation purposes as well. I’ll intentionally break things just to see how to fix them. All WordPress users should do this.
[Reply] Len — 12/30/2007 @ 1:40 pmThis is just what I have been waiting for. I have followed every step mentioned in this part to the letter and now I cannot wait for part 2. Thank you.
[Reply] Arnold (4 comments.) — 12/30/2007 @ 2:52 pm[...] Check it out! [...]
mark’s blog » Install WordPress Locally (1 of 2) — 12/30/2007 @ 2:57 pmI’ve been using something similiar on my mac for a while now and it’s great! Nice to be able to make changes local and not have to worry about breaking a live site.
I didn’t know there was one for Windows. I’ll have to add that to my VM. Thanks!
[Reply] db (2 comments.) — 12/30/2007 @ 3:05 pmGreat work
Actually i doing something similar with ubuntu.
[Reply] Power (4 comments.) — 12/30/2007 @ 3:31 pm@Arnold Glad to see the article worked out for you.
There is a great comparison of WAMP (Windows, Apache, MySQL, PHP) packages: http://en.wikipedia.org/wiki/Comparison_of_WAMPs
[Reply] Alex — 12/30/2007 @ 3:57 pmNice howto for the not so technical savvy people! I myself installed apache, sql and php on my linux distro seperatly instead of the nice packages they have for windows
[Reply] Matt (1 comments.) — 12/30/2007 @ 4:08 pmCool article - I’ve been meaning to do this in January to avoid redesigns on the fly. Looking forward to part!
[Reply] bruce (2 comments.) — 12/30/2007 @ 4:12 pmThis is just what I needed; I’ve wanted to do this for a long time, but could never find a decent walkthrough geared towards someone not-so-knowledgeable. Now all I need is for my flipping bandwidth limit to reset so I can download this, and I can get going!
[Reply] kite — 12/30/2007 @ 4:26 pmFor Mac OS X, MAMP accomplishes the same thing. Turns what was once a complicated and painful configuration procedure into a nearly one-step installation (though you may have to fiddle with OS X’s built-in web server settings to prevent conflicts). It even supports URL rewriting by default. Very handy.
[Reply] Jonathan Dobres (5 comments.) — 12/30/2007 @ 4:40 pmLike len, I’ve been doing this for a long time as well. All you really need to do is install XAMPP. It’s not that hard. Just setup a mysql account (it walks you through it), and then install wordpress.
[Reply] MASA — 12/30/2007 @ 5:28 pmI’ve been using WAMPServer for several months. Found instructions and download here. Your instructions seem to be more comprehensive though. I used XAMP before but like WAMP better.
[Reply] Carson (22 comments.) — 12/30/2007 @ 5:32 pm[...] Read more at Weblog Tools Here [...]
Mimic Wordpress | nobullwebmastering.com — 12/30/2007 @ 5:36 pm[...] Weblog Tools Collection » Blog Archive » Install WordPress Locally 1 Of 2 (tags: wordpress windows) [...]
links for 2007-12-30 - Bastie.Silke — 12/30/2007 @ 6:45 pm[...] on my MacBook Pro –there’s a good tutorial being released currently for PC users here–but I used the M(ac)AMP option, and if I get a chance I’ll blog how I did it. It may be [...]
UMW Blogs Upgraded to WPMu 1.3 at bavatuesdays — 12/30/2007 @ 9:24 pmI’d like to do this on my Macbook … I see some of the commenters are saying they have achieved this. The MAMP option looks like it requires purchasing the program. Is there a free and easy way to do it?
[Reply] danithew (1 comments.) — 12/30/2007 @ 11:20 pm@danithew:
http://www.apachefriends.org/en/xampp-macosx.html
[Reply] MASA — 12/31/2007 @ 12:44 amMAMP is free. The Pro version is not. Follow the link above and choose the download from the download link on the right.
[Reply] db (2 comments.) — 12/31/2007 @ 12:48 amWouldn’t it be great if i can sync the local installation with the actual on the webserver?
[Reply] Krishna — 12/31/2007 @ 12:49 am[...] by carrying a functional (local) copy of your server software (Apache, PHP, MySQL) on your laptop. WLTC has a 2 part instructions to help you do just that. It might also be of interest to know that there is an even more flexible [...]
Carry your WordPress Wherever You Go! // MandarinMusing.com - Web 2.0 Resources, WordPress Themes, Web Design, Internet, Technology — 12/31/2007 @ 3:38 amI too use XAMPP and I have to do the sync between my actual blog and local copy manually. Copying the database is especially painful to do manually. Any Perl scripts to make it automated?
[Reply] tabrez (8 comments.) — 12/31/2007 @ 5:17 amHey MASA,
[Reply] Israel (1 comments.) — 12/31/2007 @ 1:37 pmThanks for the link, it took me about 10 minutes to install.
This is something I really needed for development purposes on my new MAC .
Awesome.
Too cool for school. I can’t wait to start building locally with these tools. I recently tried a virtual server from Joomla and it rocks. This will round out my site building tools with WordPress. Thanks a million!
[Reply] Chad (1 comments.) — 12/31/2007 @ 6:25 pmI Recommend for the newbies try EasyPHP, one problem is that some WP versions dont work the admin login. Well… EasyPHP 1.8 and WP 2+ versions Works nice at all.
Nice year for all people.
[Reply] Diseño Web (6 comments.) — 12/31/2007 @ 9:56 pmFor the ultimate newbie - I would suggest AppServ. I still am a newbie, especially when it comes to databases and such, and whilst I did try e.g. WAMP and some other more sophisticated local-server software, I found they were a bit more powerful than what I needed just to test Wordpress. AppServ runs *extremely* unobtrusively in the background and worked straight from installation.
[Reply] Mosey — 01/1/2008 @ 1:35 amnewbies? what??? you mean…every joe Schmo doesn’t have their own website, and blog, by now? Might as well not even consider yourself a computer geek, if you don’t have at LEAST 4 or 5 computers in your house running over a hardware router. I’ve been running a home server for test blog purposes for years, ya mean everyone doesn’t do this? hehehehe
I mean gosh, the way I get treated in the wordpess forums, they treat me like I’m some stupid retard or something, like I’m the only one who doesn’t have multiple computers running in their home, or too stupid to not be running my IP thru proxy servers like they do in chat rooms. I no longer feel so stupid in the wordpress community now reading this article
I mean gosh, they treat you like if you don’t know how to setup linux from scratch your an idiot or something…
[Reply] bubazoo (38 comments.) — 01/1/2008 @ 5:47 amI installed wamp2 on my Xp machine a week ago and it rocks!…but…the enevitable bug for me anyway is that everytime I open a page for testing/editing, it tries to dial out.
[Reply] larry — 01/1/2008 @ 6:17 pmWorking on finding the solution as we speak.
Thanks for the useful tip. Can’t wait for part 2
[Reply] Max (2 comments.) — 01/1/2008 @ 8:27 pmI use xampplite. It’s enough for me.
[Reply] marcus (1 comments.) — 01/2/2008 @ 2:14 pmThis is an overly (overtly) simplistic part 1 of 2 part series. FYI, you probably want ApacheFriends (.org) instead of WAMPSERVER. I’ve installed just about every ?AMPP? distro out there, and ApacheFriends has a long-standing tradition of providing very well packaged, stable and integrated services … can’t say nearly as much for WAMPSERVER. Any dummy can download an AMPP package and install it … refinement is key.
[Reply] Chip (1 comments.) — 01/2/2008 @ 8:19 pm[...] do you want to see in the next version of WordPress? Installing WordPress On Your Home Computer: Weblog Tools Collection is offering a two part series on installing WordPress locally on your computer so you can play with WordPress Plugins and designs before you release them to the [...]
WordPress Wednesday News: Mandatory WordPress Security Release, Sneak Previews of WordPress 2.4, Hoodies, Vote for WordPress, Moving to WordPress, Custom Fields, and More : The Blog Herald — 01/3/2008 @ 12:49 amXAMMP Only! I was trying WAMPP, but it’s really s*x…
[Reply] zigmat (1 comments.) — 01/3/2008 @ 6:34 amif you are malaysian, or u know bahasa Melaysia, i make some tutorial before about install wordpress locally…
http://www.khai.scukz.com/2007.....indows-xp/
[Reply] khai (1 comments.) — 01/3/2008 @ 9:22 am[...] already, make sure you have made the appropriate PHP.ini file changes that were explained in part 1. If you don’t, you will run into numerous errors about the SQL file being too large to [...]
Weblog Tools Collection » Blog Archive » Install WordPress Locally - Part 2 Of 2 — 01/3/2008 @ 11:48 am[...] 7.0 Antonio Cambronero (03/01/08): ¿Cómo instalar WordPress localmente?: parte 1 y parte 2. Y ya se puede ver la pinta que tendrá el nuevo panel de administración. [...]
WordPress News 1 » blogpocket 7.0 — 01/3/2008 @ 4:51 pm[...] News 1 ?C?mo instalar WordPress localmente?: parte 1 y parte 2. Y ya se puede ver la pinta que tendr? el nuevo panel de administraci?n. Guardado por [...]
» WordPress News 1 deUgarte.com — 01/3/2008 @ 5:50 pm[...] instalar WordPress localmente?: parte 1 y parte 2. Y ya se puede ver la pinta que tendrá el nuevo panel de [...]
bitsenbloc » Blog Archive » WordPress News 1 — 01/3/2008 @ 5:51 pm[...] instalar WordPress localmente?: parte 1 y parte 2. Y ya se puede ver la pinta que tendrá el nuevo panel de administración. Posted in [...]
Versvs en la RMD » WordPress News 1 — 01/3/2008 @ 5:56 pmAnd if you don’t want to use WAMP, you can always be adventurous by following my Apache Installation Guide on Local here. Nice writeup here by the way.
[Reply] Syahid A. (1 comments.) — 01/4/2008 @ 3:50 am[...] Install WordPress Locally 1 Of 2 - Installer WordPress loakalt [...]
René Clausen Nielsen | Mine del.icio.us-links fra 26. oktober til 4. januar — 01/4/2008 @ 8:58 pm[...] Install WordPress Locally Part 1 Install WordPress Locally - Part 2 Of 2 I go over some of the details that made this article tough to write. We discuss our experiences with local installs and why it would be benficial to you to have a local install of your WordPress site. Ronald also informs me of two WP_Config entries that you can add to your WP-Config file which would replace the need to edit any tables within an imported database. They are: [...]
WordPress Weekly - Episode 1 » Jeffro2pt0.com — 01/5/2008 @ 5:51 am[...] blog que está “en producción” a nuestra copia local. Lo dan explicado en dos partes: instalación del servidor y copia de un blog a una copia [...]
Ubuntu: instalar wordpress en local | Dondado — 01/5/2008 @ 7:43 pm[...] would have been possible without a local install of WordPress. My mate Jeffro wrote an article on how to do the local install if you’re [...]
New Theme Coming Soon » Oh! Mike! — 01/10/2008 @ 10:54 am[...] already, make sure you have made the appropriate PHP.ini file changes that were explained in part 1. If you don’t, you will run into numerous errors about the SQL file being too large to [...]
Install WordPress Locally - Part 2 Of 2 at blog.rotracker.net — 01/13/2008 @ 11:40 am[...] a local version of WordPress this post possibly isn’t for you. I suggest reading these first: Installing WordPress Locally Part 1 - Installing WordPress Locally Part [...]
Testing on Mulitple Versions — 02/8/2008 @ 10:04 pm[...] You have WordPress locally installed. If not, please read Jeff’s tutorial on installing WordPress locally. [...]
Weblog Tools Collection » Blog Archive » Adding Your Plugin to WP Extend Plugins With a Mac — 02/9/2008 @ 8:23 am[...] on my MacBook Pro –there’s a good tutorial being released currently for PC users here–but I used the M(ac)AMP option, and if I get a chance I’ll blog how I did it. It may be [...]
Aggre8 » Blog Archive » UMW Blogs Upgraded to WPMu 1.3 — 02/10/2008 @ 5:00 pm[...] on my MacBook Pro –there’s a good tutorial being released currently for PC users here–but I used the M(ac)AMP option, and if I get a chance I’ll blog how I did it. It may be [...]
UMW Blogs Upgraded to WPMu 1.3 — Plugin Test Blog — 02/11/2008 @ 7:42 am[...] up locally on my MacBook Pro –there’s a good tutorial being released currently for PC users here–but I used the M(ac)AMP option, and if I get a chance I’ll blog how I did it. It may be too [...]
» UMW Blogs Upgraded to WPMu 1.3 WPMu Ed — 02/28/2008 @ 6:34 am[...] Install WordPress Locally - Part I [...]
Best Wordpress Beginner Articles and Worthy Plugins - Roundup — 03/4/2008 @ 3:51 pm[...] Weblog Tools Collection » Blog Archive » Install WordPress Locally 1 Of 2 (tags: wordpress howto apache install php locally software) [...]
links for 2008-03-17 at DeStructUred Blog — 03/16/2008 @ 7:20 amI use MAMP (the mac version) but was wondering what exactly I need to do to transfer all the files to my server.once I have my site designed and ready to go?
[Reply] Kathy Osborne — 04/21/2008 @ 3:38 pmThank you! I couldn’t figure out why my new install of Wampserver couldn’t start apache. I had Skype open! Timely info, thanks.
[Reply] Steph — 04/28/2008 @ 10:41 pmThank you so much for this tutorial and the configuration recommendations specific to WordPress. It was a huge help to me.
[Reply] Terry Lee — 05/22/2008 @ 3:56 pm[...] for using this for Wordpress? Check out Webtoolscollection or Wordpress@T2 for using XAMPP. Prefer this in Hebrew? Check IT-Bananas or [...]
Install, Upgrade, Test and Debug your CMS website locally on a Windows machine | Fili's tech — 07/18/2008 @ 9:40 am