r3c / winp

Portable Nginx/PHP/MySQL development server for Windows.
MIT License
15 stars 7 forks source link
mariadb mysql nginx php server windows

Winp: Windows Nginx PHP development server

Build Status license

image image

Overview

Winp is an open-source (MIT) Nginx/PHP server for Windows. It provides a one-click portable install of required software for PHP development:

Please note Winp is a development tool and is not suitable for production usage.

Installation

Download latest Winp release from GitHub or compile from source, unpack anywhere you want then run Winp.exe.

You should see all packages in "Running" status (or "Ready" for phpMyAdmin which doesn't execute as a background service). A new browser windows will also open to http://localhost/ or whatever URL you set as first location.

If you didn't change default configuration you can also navigate to http://localhost/phpmyadmin/ to open PhpMyAdmin.

Configuration

In the configuration panel you can tweak how required packages are installed and run.

For each location you must specify a base URL (plain text only, no support for regexps yet) and a type that defines which configuration preset must be applied for this location. Available location types are:

For more advanced configuration, you'll find *.template files created by Winp in package directories (e.g. nginx/$version/conf/nginx.conf.template). These files are used to produce actual configuration files each time services are started, so you can tweak them to your needs. They're created if missing and reused otherwise, and are written using Cottle template engine with custom delimiters set to "{{", "{|}" and "}}".

Credits