How to Install Apache2, MariaDB 10 and PHP 7 on Windows 7

“Just follow my tutorial on link bla..bla..bla”. I said that when I’m teach my student about WAMP (windows, apache, mariadb and php). My student save a few related tutorial in this blog and they came back a few days later and tell me that my tutorial not working anymore 🙂

I came to my tutorial and follow it and the result is still same, its not working anymore hahahahaha. I promise to try it and post the result in same blog.

Lets get start!

Download Software

Download latest Apache 2.4 from Apache Lounge.

Choose Win32 if you use Windows 32 bit and choose Win64 if you use 64 bit.




Download latest PHP 7 for Windows

At this moment latest PHP 7 is PHP 7 beta 2.

Choose Thread Safe version from Windows QA.



















Download latest MariaDB 10

I use 10.0.20 branch.


Install Software

Install Apache 2.4

Create a folder inside C , I call it wamp and put all downloaded software inside this folder.







Right click on Apache compressed file (httpd-2.4.12-win32-VC14) and choose extract all.

Make sure to choose C:\wamp as destination folder the click Extract folder.

New folder resulted from that operation (Apache24)








Configure Apache24

Open httpd.conf in Apache24/conf folder using notepad then change these options :

1. Server Root

ServerRoot “c:/Apache24”


ServerRoot “c:/wamp/Apache24”

2. documentroot

DocumentRoot “c:/wamp/Apache24/htdocs”
<Directory “c:/wamp/Apache24/htdocs”>


DocumentRoot “c:/Apache24/htdocs”
<Directory “c:/Apache24/htdocs”>

save the file.

Run Apache24

Open cmd and type this :

cd c:\wamp\Apache24\bin

(hit Enter)

Followed by type :


(hit Enter)

A window pop up will appear :













Click “Allow access”

Testing Apache24

Don’t close dos window that run Apache software (let it open as long you need it). Open browser and type “localhost”.






Yes, if you also reach this step then You have working web server in your Windows 7.

PHP7 and Windows 7

Lets continue with PHP 7

Extract PHP7 file

Right click on PHP7 folder then choose “extract all”

Make sure to enter C:\wamp\php as destination folder.


Configure PHP7 to work as Apache24 module

Open httpd.conf file that located in C:\wamp\Apache24\conf folder.

Add these lines :

1. PHP 7 module (Add to the end of the LoadModule section)

LoadModule php7_module “C:/wamp/php/php7apache2_4.dll”

2. mod_mime section  (Add this line inside the <IfModule mod_mime> conditional brace)

AddType application/x-httpd-php .php

AddType application/x-httpd-php-source .phps

save the file.

Tes if PHP7 work

Create file info.php and put it inside c:\wamp\apache24\htdocs

the content of info.php




Open web browser and type localhost/info.php

If you see PHP7 information then you have working PHP7 on your windows 7.


Note :

I found a few error like :

1. api-ms-win-crt-runtime-l1-1-0.dll missing

2. vcruntime140.dll missing

To fix this error you need Visual C++ Redistributable for Visual Studio 2015. Click this link to get proper version.

Install MariaDB 10 in Windows 7

Double click MariaDB 10 installer.













Click Next













Accept licence agreement and click next













Make sure to set installation location to C:\wamp\mariadb10\ then click Next












Set password and click next.












Set MySQL as service mean you don’t have to start or stop it manually.

Click Next












Click Install













Wait for moment till you see this picture.mariadb108

Comments are closed, but trackbacks and pingbacks are open.

GIft Ideas