Configuring an ‘all-in-one’ WebPageTest Private Instance
WebPageTest (WPT) is a great tool and the public instances cover many scenarios but sometimes I need a private instance, for example when testing sites that aren't publicly accessible yet or debugging a script.
Setting up a private instance is reasonably straightforward but there are a few gotchas and some settings aren’t always obvious the first time around.
I’ve been asked by a few people how I set up instances, so these notes explain the steps I follow to create an ‘all in one’ installation with the server and test agents on same machine.
The notes are based on WPT install guide and can also be used as a guide to creating separate a server and agents, although I’d use a Linux variant for the server in that case.
Base Windows Configuration
Start with a fresh Windows 7 install (I used 32-bit Professional, the virtual machines Microsoft make available for browser testing are another option but stick with 32bit)
Create a user with local administrator rights and set them to log in automatically when the machine starts up. (this has security implications and some network managers may not like it)
Turn off UAC
Turn off any screensaver
In the power saving settings choose never as the options for turning off the display and putting the computer to sleep
Set firewall rules to allow port 80 & 443 TCP inbound
Add shortcuts for Shutdown and Restart
When accessed via Remote Desktop (RDP), Windows 7 doesn’t display the Restart and Shutdown options on the Start menu, so I add shortcuts for them:
Shutdown : shutdown -f -s -t 1
Restart : shutdown -f -r -t 1
I also add Notepad++ and 7zip so I have a decent text editor and archiving tool
Server Installation
Install Apache
Download and install Apache. Apache 2.2 is currently the most recent version with a Windows binary.