Following the purchase of a spangly new Toshiba laptop running Vista, and not one for making life simple, I decided not to run my development environment on IIS7, but rather, I wanted to install the latest version of Apache.
Installing Apache under Windows XP was relatively trivial. This is not the case under Windows Vista. The creation of the Apache service fails, but not overtly. Furthermore, the all-important conf directory can™t be set up by the installer, probably due to user permission problems.
I finally got it working with the following procedure. I used the latest version of Apache (2.2.4) and Windows Vista Business Edition.
- Uninstall any previous installations of Apache Web server (Start > Control Panel > Programs and Features).
Make sure that all old Apache folders are also removed (e.g. like C:\Program Files\Apache Software Foundation\…).
- Turn off your firewall via the Control Panel.
- Stop User Account Control (UAC).
- Get the most recent version of Apache from http://httpd.apache.org/ and put it on your desktop, or folder of your choosing. The file I used was called apache_2.2.4-win32-x86-no_ssl.msi, but for ease, it is a good idea to rename the install file to apache.msi.
- Start > All Programs > Accessories Right-Click Command Prompt and choose œRun as Administrator.
- Via the command prompt, navigate to the folder in which the apache.msi install file is located.
- Type msiexec /i apache.msi on the command prompt.
- Run through the Apache installer.
- I™m running it as a development server, so I left the domain as “localhost”.
- Choose the default server on port 80 for all users option.
- The default installation directory is C:\Program Files\Apache Software Foundation\Apache2.2\, but again for ease, you could change the installation directory to C:\Apache.
- Reboot your computer.
- The little Apache feather icon won™t appear on the task bar under Vista with the present version of Apache (2.2.4). To remove the œerror box that says blank or “the operation completed successfully on startup, go to All Programs > Startup, and remove the “Monitor Apache Servers” item there.
- Browse to http://localhost. It should say “It works!” If it doesn’t, panick, or check your httpd.conf file by going to All Programs > Apache HTTP Server 2.2.x > Configure Apache Server > Test Configuration. Follow the directions for fixing the configuration file.
- Turn your firewall back on.
- Turn UAC back on too, if you like to be constantly bugged by control messages!