“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 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 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.
Open httpd.conf in Apache24/conf folder using notepad then change these options :
1. Server Root
save the file.
Open cmd and type this :
Followed by type :
A window pop up will appear :
Click “Allow access”
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.
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.
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.