How to install laravel 5.5 on windows

How to install laravel 5.5 on windows

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
How to install laravel 5.5 on windows

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)

How to install laravel 5.5 on 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.

How to install laravel 5.5 on windows

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)

How to install laravel 5.5 on 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
How to install laravel 5.5 on windows

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

How to install laravel 5.5 on windows

Step 4: How to run laravel project

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

How to install laravel 5.5 on windows

Hope you can do it. Cheerss! happy coding!

Adam Brown
Please follow and like us:

Leave a Comment