If you are planning to install Apache, PHP and MySQL on Windows 10 machine, then you can do so by choosing any of the two options given below:
- You can use any ready-to-use packages like: WampServer, XAMPP etc.
- You can make your own fully functional WAMP server (Manual Installation).
So, in this tutorial, you’ll learn about how you can install Apache, PHP and MySQL server manually on your Windows 10 PC. As I’m currently using Windows 10 Pro 64-bit, so this tutorial is based upon it. I recommend that you read the whole tutorial first before following the instructions.
First, we have to decide as to which version of each application will be installed.
- Apache 2.4
- MySQL 5.5
- PHP 5.6
Apache 2.4 Installation on Windows 10 Pro 64 bit:
First for downloading Apache 2.4, visit
Apache 2.4.16 VC11
This release of Apache is supported by PHP 5.6 installation from windows.php.net for Apache 2.4.
Extract the zip and copy it to the root of C:.
This will be C:Apache24 when all is done.
Microsoft Visual C++ 2012 Runtime is required for running Apache in Windows Environment:
Download and install Microsoft Visual C++ VS 2012 x86 from
After installation, you need to configure Apache:
Open Apache configuration file in the text editor httpd.conf contained in the Apache folder C:Apache24Conf.
There are several lines you should change for your production environment:
Listen to all requests on port 80:
Specify the server domain name:
Allow .htaccess overrides:
Install Apache as a Windows service
Open a command prompt, enter:
httpd -k install
Test your Apache web server
Create an HTML file in Apache’s web page root (either htdocs or D:WebPages) with name index.html and add a little HTML code:
<body><p>Apache is working!</p></body>
Run this file in browser: http://localhost/index.html
PHP 5.6.12 Installation:
- First download php-5.6.12-Win32-VC11-x86 from
- Extract and rename folder to php and move to C: drive.
- Configure your ini file:
extension_dir = “C:phpext” [Set extension directory]
You can enable other extensions as per your requirement like: Curl, GD, MySQL.
- Set environment variable for PHP:
From the Control Panel -> System -> Advanced system settings->Advanced environment variables.
Scroll down the system variables list and click on ‘Path’ followed by the ‘Edit’ button. Click new – Set path C:\php – Click OK.
After setting up environment variable, system reboot is required.
- Configure PHP as an Apache module:
Edit Apache configuration file and add below lines at the bottom of the file. C:Apache24Confhttpd.confLoadModule php5_module “c:/php/php5apache2_4.dll”
AddHandler application/x-httpd-php .php
# configure the path to php.ini
MYSQL 5.5 Installation:
- Download the MySQL installer
- Run MSI Installer
- Click on Next:
- You will then be provided a dependency software checklist that will be installed. Select ‘Execute’.
- Select Developer Default option – Click on Next.
- Click on Execute
- Click on Next.
- Click on Next.
- Put MySQL root password and confirm password.
- Click on Next.
Click on Finish.
That’s it! You’re done 🙂
Planning to install Apache, PHP and MySQL? Choose VPS and pick any plan from https://www.znetlive.com/vps-hosting-windows/
If you have any doubt regarding this write-up or need to know more about the installation, drop comments below to get in touch.