wnmp-dev is development environment for Windows that consists of nginx, MySQL (or MariaDB) and PHP.
- Clone
https://github.com/samdark/wnmp-dev.git
or download as archive. - Download PHP from PHP for Windows website. You need
nts
andx86
zip. - Extract archive. PHP 5.5 should end up in
php55
, PHP 5.4 should end up inphp54
etc. - Download MariaDB or MySQL,
put it to
mariadb
. - Copy
nginx/conf/vhosts/example._conf
tonginx/conf/vhosts/mysite.conf
, edit it to point to your webroot. - Add domain chosen to your hosts file.
- Run
start_all.bat
. - Enjoy.
By default it starts 4 instances of PHP 7 FastCGI on port 9000 but it's possible to switch versions by running
restart_php php54
. It's also possible to specify number of php-cgi.exe
instances and port via
restart_php php54 4 9000
. If you need another PHP version create new directory php-directory
for it, put PHP there
and then you'll be able to run restart php-directory
.
- PHP CGI spawner (
php-cgi-spawner.exe
): https://github.com/deemru/php-cgi-spawner - Nginx: https://nginx.org/