WinNMP - Nginx MariaDB Redis Php development stack for Windows

A lightweight, fast and stable server stack for developing php mysql applications on windows, based on the excellent webserver Nginx. A lighter alternative to XAMPP and WAMP.

How to create a new LARAVEL Project on Windows:

    1. Install WinNMP Stack

    2. Create a new LARAVEL Project

    • Open WinNMP Manager by clicking the taskbar or desktop icon

    • Click on New Project icon, choose a project name like myProjectName, hit Enter or click Save Project.

      New Project

    • Click Save to close the Edit Project window

    3. Download LARAVEL using Composer

    • Open a Command Prompt Open Command Prompt and execute (in folder WWW)

      composer create-project --prefer-dist laravel/laravel myProjectName

    4. Setup Nginx

    • In the Projects list, click Project Setup Project Setup

      Edit Nginx Local Virtual Server

    • Leave Enable Local Virtual Server checked.

    • Set Public Sub-Folder to public. The folder public must exist!

    • Click on Edit Nginx Virtual Server button and replace the location / section with:

      location / {
          try_files $uri $uri/ /index.php?$query_string;
      }
    • Save myProjectName.conf and click Save to close the Edit Project window

    • Press Kill button next to Nginx, then Start

    5. Setup PHP

    • Press Edit php.ini button next to Php and comment out open_basedir (and pray), save php.ini,
    • Press Kill PHP, then Start Php

    6. Configure LARAVEL

    • Use Adminer to check if the project's database myProjectName was created automatically

    • Edit laravel .env file WWW\myProjectName\.env and set :

      DB_DATABASE=myProjectName
      DB_USERNAME=myProjectName
      DB_PASSWORD=""
    • Open a Command Prompt Open Command Prompt and execute:

      cd myProjectName
      php artisan key:generate
      php artisan config:cache

    7. View the frontend

    • Browse to http://myProjectName.test