Setup basic Apache+PHP server on Windows for development
These installation files are from the great Apachehaus builds that have lot of features packaged in. I suggest you go there first to get the latest version while following this blog.
Files
- httpd-2.4.20-x64-vc14.zip
- Visual Studio 14 (2015) runtimes if you don't have (httpd.exe will fail to start with specific error about VCRUNTIME140.dll missing otherwise)
- php-5.6.20-Win32-VC11-x64.zip
- Apache httpd.conf sample file
Installation
- Create a folder c:\dev if not existing
- Extract httpd-2.4.20-win64-VC14.zip to c:\Apache24
- Extract php-5.6.20-Win32-VC11-x64.zip to c:\php5
- Save httpd.conf to c:\apache24\conf\ (Right-click | Save As)
- Test the installation by running in a cmd.exe : c:\apache24\bin\httpd.exe
Set as startup
- Open a cmd.exe as Administrator
- cd to C:\apache24\bin
- httpd -k install -n "Apache24"
- Open Apache Monitor in the tray and start the service
Et Voilà!
Recent Comments