How to install laravel 5.5 on windows

Published Date: 05-May-2018 | Tags: Laravel 5.5  

This tutorial I would like to show you how to install WampServer, Composer and Laravel 5.5 framework on windows.

 

Step1: Install WampServer

Please go to download WAMP Server 32 bit or 64 bit and set it up. And then start its service.
Suppose that you are running WAMP on port 80, and your installation is in C:\wamp64\www.

Make sure that the version of php is >= 7 by going to command prompt (CMD) and run this command 

php -v


php version check

Note: If you see error like "... is not recognized as internal and external command,...", please close your command prompt, go to add PHP path in system variable, then go back to the command prompt and do it again.

How to add PHP path in system variable?

Right click on My Computer shortcut -> Properties -> Advanced System Settings-> Environment Variables -> double click on path in System Variables -> append your php path there (C:\wamp64\bin\php\php7.0.10)

set php path in windows

 

Step2: Install Composer

Please download and install composer https://getcomposer.org/Composer-Setup.exe. Then go to command prompt (CMD), and run this command

composer

If you see the screen like below, it means the composer is working fine for the laravel installation.

composer check

Note: If you see error like "... is not recognized as internal and external command,...", please close your command prompt, go to add composer path in system variable, then go back to the command prompt and do it again.

How to add Composer path in system variable?

Right click on My Computer shortcut -> Properties -> Advanced System Settings-> Environment Variables -> double click on path in System Variables -> append your composer path there (C:\ProgramData\ComposerSetup\bin)

add composer path in windows

 

Step 3: Install Laravel 5.5

Suppose that we are going to create a laravel project called "demo" in C:\wamp64\www.


Go to command prompt (CMD), navigate to C:\wamp64\www, then type this command

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

 

install laravel 5.5

If you see the screen like below, it means your laravel project was successfully installed.

laravel 5.5 finish install screen

 

Step 4: How to run laravel project

Once the installation is done, please go to browser and type http://localhost/demo/public.

laravel 5.5 welcome screen

Hope you can do it.



Related Posts

© 2018 All Rights Reserved.