WAMP For WordPress

Yes, that was the sound of me hitting my head as I tried to setup a WordPress development environment on Windows Vista in the absence of my now restored Ubuntu running ThinkPad.

It is also the acronym for the stack of software that WordPress runs on where the W is for Windows not WordPress. Windows
Apache
MySQL
PHP

Wow, there are a lot of ways to install it.

WAMP is the awkward cousin of LAMP where the L is for Linux.

LAMP is what much of the web is built on, and the acronym is all to familiar to a web developer’s ear. There are other popular web “stacks”, but WordPress was written in PHP using this stack because it is ubiquitous/everywhere/available on every host.

PHP isn’t a sexy programming language like Python, Ruby, or for the Microserfs .NET, but the WordPress developers have always put first what is most important: everyone being able to use WordPress, and a 5 minute install helps, a lot.

I always recommend developing in an environment as close to what your customers are using1 , or in the case of a web service the environment that the service will run on.2

WordPress is run on a lot of LAMP like environment where the most common variations are, of course, different versions of the software. In putting the WordPress members first, WordPress developers have stayed unsexy by supporting older versions of MySQL and PHP.

Next to running on older versions, the most common variation is using litehttpd, Windows’ IIS, or LiteSpeed Web Server. Solaris for the OS seems to be an increasingly popular choice for web servers.

Environment specific bugs with WordPress are very rare, but when they do occur they have seemed to be PHP version related, or Windows IIS specific. We are very fortunate to have participants like Robert Deaton with the expertise to work around PHP related issues. We are fortunate to have contributors like “Computer Guru” of NeoSmart Technologies and Bas Bosman (nazgul) reporting all problems they find with WordPress on Windows IIS.

So there I was setting up a development environment on Windows because my Ubuntu Linux was laptop temporarily out of commission. The first part of this is installing WAMP.

There are a huge number of popular WAMP packages. Wikipedia (encyclopedia++) has a comparison page of WAMPs. Any of the popular ones that have been updated in the last six months would probably be a good choice.

When I have a choice where there seems to be no difference in functionality, I choose based on which one appears to have the strongest community or is better produced and supported. Which of those two depends on whether I’m looking for community and free, or produced and paid support. With community and free, I’m ultimately taking the risk that I will be by myself in investigating any problems.

Here community and free are a good choice, because I’m not going to need a more advanced WAMP stack with monitoring (now).

There are a huge number of popular choices, but the most popular based on reading blog posts and forums seem to be XAMPP and WAMP (now called WAMPServer). I’m surprised by how much more popular XAMPP is given that WAMP has the generic name. XAMPP seems to have few Google Search results related to “security exploit”, so the popularity isn’t likely negative because of bad security.

XAMPP vs WAMP

So that is the long story of me choosing to install XAMPP on Windows Vista.

XAMPP Logo

I will probably follow up with some of my notes from installing it, but for now I leave you with my colleague Mark Riley’s still excellent Installing Xampp and WordPress or John Godley’s Installing WordPress on your own Windows computer. After you are setup on Windows (if you must) see Peter Westwood (westi)’s Windows WordPress Toolbox.

Update Sept 19th: Chris Kasten (handysolo) is writing a great series of posts the first one being Testing New WordPress Versions Part 1: XAMPP

  1. This was a serious issue at Flock, where not a high enough percentage of the developers where developing on Windows or particularly proficient at it. I imagine this has now been resolved as the Windows developer x-Mercs joined the team []
  2. Release testing still has to be done in a real, clean production environment. []

10 Comments

  1. Posted September 12, 2007 at 10:14 am | Permalink

    Why not use VMWare to run LAMP on your Windows box?

  2. Posted September 12, 2007 at 10:33 am | Permalink

    engtech, I have done that as well. My goals here were:
    1. To get up and running as quick as possible
    2. To see how the other side does it

    vmware isn’t a realistic solution for some people because of performance / computer memory.

  3. Posted September 12, 2007 at 6:01 pm | Permalink

    Lloyd, I think XAMPP is a great choice in windows, I used that for the longest time on my windows box and now that I have an Ubuntu laptop I run Xampp for Linux(yes there is such a thing) on it, simply because I only use it for a dev environment, so I don’t need a production worthy set up, the install only takes about 2 minutes, I don’t have to configure anything and it has a control panel to turn things on and off at will. All in all, I’ve found Xampp pretty amazing and it helps me be more productive and I can sure use all the help I can get in that area :P

  4. DaveRH of realityhosting.ca
    Posted September 18, 2007 at 8:37 am | Permalink

    Wow, your a braver man than I, that’s for sure. I wouldn’t even attempt a wordpress setup on a vista or xp environment. :)

  5. Posted November 23, 2007 at 4:30 pm | Permalink

    Thanks for this post. I was looking to setup “AMP” on my spare computer and was having way too much trouble setting up the “L”. I’ll give XAMPP a try.

  6. Claire of naturallygreen.co.uk
    Posted November 27, 2007 at 7:39 pm | Permalink

    Did you ever publish your notes on your installation experience?

  7. Posted November 29, 2007 at 11:23 am | Permalink

    Thanks for asking Claire. No, I haven’t. what did you think of handysolo’s article?

  8. Stefan of programmingado.net
    Posted December 6, 2007 at 1:51 am | Permalink

    tried some other of the WAMP packages? When I scracthed my box I thought I’ll give AppServ a try but couldn’t get Curl to work. So back to XAMPP I went.

  9. Posted December 6, 2007 at 5:43 pm | Permalink

    Stefan, no I haven’t and to be honest, I find developing open source so awkward on Windows, my recommendation is now to use MacOS or Linux.

  10. fideocam.com
    Posted February 5, 2008 at 12:33 pm | Permalink

    I initially had some trouble setting up Wordpress blog on WAMP. I ran into a memory error. The fix was supposed to be setting memory size to 32MB in php.ini. Trouble is that there are at least two php.ini files in wamp directories. So you got to edit the settings in C:\wamp\Apache2\bin\php.ini, not (just) in C:\wamp\php\php.ini.

Post a Comment

Your email is never shared. Required fields are marked *

*
*