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:

  1. You can use any ready-to-use packages like: WampServer, XAMPP etc.
    OR
  2. 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 on your Windows 10 PC manually . 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.29
  • MySQL 5.7.21
  • PHP 7.2.3

You can download the required installer via links given below:

MySQL Installation on Windows 10 Pro 64 bit:

  • Download MySQL installer and click on Run.

How to install Apache, PHP and MYSQL on Windows 10 Machine 1

How to install Apache, PHP and MYSQL on Windows 10 Machine 2

How to install Apache, PHP and MYSQL on Windows 10 Machine 3

  • Select License Agreement and then click on Next.

How to install Apache, PHP and MYSQL on Windows 10 Machine 4

  • Select Server Only and click on Next.

How to install Apache, PHP and MYSQL on Windows 10 Machine 5

  • It will ask you to install Visual Studio 2013 on your system.
  • Click on the Execute button.

How to install Apache, PHP and MYSQL on Windows 10 Machine 6

  • Select License agreement and click on Install.
    How to install Apache, PHP and MYSQL on Windows 10 Machine 7
  • Click on Close.

How to install Apache, PHP and MYSQL on Windows 10 Machine 8

  • Click on Next.

How to install Apache, PHP and MYSQL on Windows 10 Machine 9

  • Click on Execute.

How to install Apache, PHP and MYSQL on Windows 10 Machine 10

  • Click on Next.

How to install Apache, PHP and MYSQL on Windows 10 Machine 11

How to install Apache, PHP and MYSQL on Windows 10 Machine 12

  • Click on Next.

How to install Apache, PHP and MYSQL on Windows 10 Machine 13

  • Put root user password. Confirm password and Click on Next.

    How to install Apache, PHP and MYSQL on Windows 10 Machine 14
  • Click on Next.

How to install Apache, PHP and MYSQL on Windows 10 Machine 15

  • Click on Next.

How to install Apache, PHP and MYSQL on Windows 10 Machine 16

  • Click on Finish.

How to install Apache, PHP and MYSQL on Windows 10 Machine 17

Your MySQL database server is now ready for use.  You can use any MySQL client software for managing your database, like phpMyAdmin, Heidi SQL, SQL YOG etc.

Apache 2.4 Installation on Windows 10 Pro 64 bit:

  • Install  the latest C++ Redistributable Visual Studio 2017: https://www.microsoft.com/en-in/download/details.aspx?id=48145
  • Download Apache files and unzip them (archive httpd-2.4.25-win64-VC14.zip) to the C:\Apache24\ directory:
  • After unzipping, go to the folder c:\Apache24\conf\ and open the httpd.conf file by any text editor.

How to install Apache, PHP and MYSQL on Windows 10 Machine 18

  • Change below line in this file:

#ServerName www.example.com:80

ServerName localhost

# AllowOverride controls what directives may be placed in .htaccess files.

# It can be “All”, “None”, or any combination of the keywords:

#   AllowOverride FileInfo AuthConfig Limit

#

AllowOverride None

# AllowOverride controls what directives may be placed in .htaccess files.

# It can be “All”, “None”, or any combination of the keywords:

#   AllowOverride FileInfo AuthConfig Limit

#

AllowOverride All

#LoadModule rewrite_module modules/mod_rewrite.so

LoadModule rewrite_module modules/mod_rewrite.so

  • Register Apache service:

How to install Apache, PHP and MYSQL on Windows 10 Machine 19
How to install Apache, PHP and MYSQL on Windows 10 Machine 20
How to install Apache, PHP and MYSQL on Windows 10 Machine 21
How to install Apache, PHP and MYSQL on Windows 10 Machine 22

If you see this page, it means that your Apache installation has been successfully done.

You can modify index page code or upload your files like example given below.

How to install Apache, PHP and MYSQL on Windows 10 Machine 23

PHP Installation on Windows10:

  • Download PHP package php-7.1.1RC1-Win32-VC14-x64.zip and unzip under C:\php72How to install Apache, PHP and MYSQL on Windows 10 Machine 24
  • Rename php-ini-development.ini to php.ini
  • Add PHP in system environment variable.

C:\>setx path “%PATH%, C:\php72” /M

  • Again, open the file c:\Apache24\conf\httpd.conf and append it with lines:

PHPIniDir “C:/PHP72”

  • AddHandler application/x-httpd-php .php

LoadModule php7_module “C:/PHP72/php7apache2_4.dll”

How to install Apache, PHP and MYSQL on Windows 10 Machine 25

 

  • Restart Apache services.

Now you can access your PHP page from default Apache document root.  Here I have created on phpinfo.php page.

How to install Apache, PHP and MYSQL on Windows 10 Machine 26

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/ 

Services ZNetLive offer:

Domain Names India

Shared Hosting India

WordPress Hosting India

VPS Hosting India

Dedicated Server India

If you have any doubt regarding this write-up or need to know more about the installation, drop comments below and get in touch.

Umesh Dubey

Umesh, Team Lead - Technical, is a Microsoft products’ expert with enviable certifications like RHCE, MCPS, MCSA and MCSE. An excellent team player, he utilizes his expertise of over 7 years in the technical sphere to handle technical issues brilliantly and dedicatedly value adds to the system administration and management fields. He can be seen drawing or playing chess in free time.
Umesh Dubey