WAMP Development Machine Setup Note

Install vanilla Apache 2.4, PHP 7.0, MySQL 5.7 separately
Not using XAMPP because I don’t like their structure.
And they run PHP by Apache module, which cause bug and crash (Especially on Laravel).

For my own note (For copy and paste :D)

Updated 2017-05-03: Change to fastcgi setup to prevent Apache crashing

PHP

Installation:
http://windows.php.net/download/
Download VC14 x64 Non-Thread Safe
Extract to C:\PHP
Setting:

Copy C:\PHP\php.ini-development to C:\PHP\php.ini

Edit php.ini, uncomment lines like

Apache 2.4

Installation:
http://www.apachelounge.com/download/
Download “Apache 2.4.x Win64”, and extract to C:\Apache\
Download “mod_fcgid” and extract to C:\Apache\modules\mod_fcgid.so

Run command as Administrator:

Setting:
Enable PHP
Create C:\Apache\conf\extra\httpd-php7.conf

Edit C:\Apache\conf\httpd.conf, Add

Enable .htaccess (Optional)
Find <Directory "C:/Apache/htdocs">
Change

to

Uncomment Lines like:

Enable VHost (Optional)
Uncomment

Test PHP

Create C:\Apache\htdocs\phpinfo.php

MySQL / MariaDB

https://dev.mysql.com/downloads/installer/
OR
https://downloads.mariadb.org/
Download MSI Package Windows x86_64

PHP XDebug (Optional)

https://xdebug.org/wizard.php
Just follow instruction

2 Replies to “WAMP Development Machine Setup Note”

Leave a Reply

Your email address will not be published.