Apache, PHP and MySQL install manually

How to install Apache, PHP and MySQL manually on windows systems. No WAMP or XAMP...

Download a latest Apache binaries.


Once downloaded, just extract the Apache24 folder to the root of your hard drive, so that you have a path like :


Open a command line window (Windows+R and type cmd then press Enter), change directory into C:\Apache24\bin and run:


If you get an error dialog stating that MSVCR110.dll is missing on your system, you'll need to install the:


A warning like Could not reliably determine the server's fully qualified domain name can be ignored for now. Open a browser and browse to http://localhost, if you see a page saying It works ! then it means your Apache installation is working. Finally, if you want to run the server automatically when the system starts (even if nobody logs in), you'll need to run it as a service - in a new elevated (as an administrator) command prompt, type:

httpd.exe -k install

Restricting Apache access to localhost only - optional. Open Apache's configuration file C:\Apache24\conf\httpd.conf, search for the default directory block <Directory "c:/Apache24/htdocs">. At the end if it, there should be a line Require all granted, this means that anyone can access this server. Let's make that:

Require local

Also, you can tell Apache to only bind to the loopback interface, that way even if both your firewall and the access control directives mentioned above fail, the server still won't be open to the whole internet. For this, locate the Listen directive (by default it's set to 80) and change it to the following :

Listen Listen [::1]:80

Download the latest PHP binaries from the official PHP for Windows download page, choose the thread-safe version that matches your Apache installation's bit-version (x86 for 32-Bit, x64 for 64-Bit).


Create an empty PHP folder at the root of your hard drive, and extract the previously downloaded archive there, you should have a path like C:\PHP\ext, otherwise you did something wrong. In C:\PHP, rename the php.ini-production or php.ini-development (depending on what you want) to php.ini.

Open that php.ini file, Search for extension_dir = "ext", Uncomment that line (remove the first ;).

Now configure Apache to use that PHP, by editing C:\Apache24\conf\httpd.conf - after all the LoadModule lines, add the following :

LoadModule php7_module C:/PHP/php7apache2_4.dll <IfModule php7_module> DirectoryIndex index.html index.php AddHandler application/x-httpd-php .php PHPIniDir "C:/PHP" </IfModule>

Now try to start Apache manually by opening a command prompt in C:\Apache24\bin and running:


Start, stop and restart apache from bin folder cmd:

httpd.exe -k start httpd.exe -k stop httpd.exe -k restart

On the MySQL Installer download page download the web installer mysql-installer-web-community-xxxxx.msi