
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
- Download the latest installer. The installer produces a portable folder.
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 likemyProjectName
, hit Enter or clickSave Project
. -
Click
Save
to close the Edit Project window
3. Download LARAVEL using Composer
-
Click on
Open Command Prompt
iconand execute (in folder
WWW
)composer create-project --prefer-dist laravel/laravel myProjectName
4. Setup Nginx
-
In the Projects list, click
Project Setup
-
Leave
Enable Local Virtual Server
checked. -
Set
Public Sub-Folder
topublic
. The folderpublic
must exist! -
Click on
Edit Nginx Virtual Server
button and replace thelocation /
section with:location / { try_files $uri $uri/ /index.php?$query_string; }
-
Save
myProjectName.conf
and clickSave
to close the Edit Project window -
Press
Reload Nginx
button
5. Setup PHP
-
Press
Edit php.ini
button next to Php and comment outopen_basedir
(and pray), save php.ini,; open_basedir=
-
Press
Restart PHP-CGI
button
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
and execute:
cd myProjectName php artisan key:generate php artisan config:cache
7. View the frontend
- Browse to
http://myProjectName.test