How to install a Laravel 5 project in Wamp server

A lot of people, who are exploring Laravel for the first time, find it really confusing to install properly in local server. I use Wamp on Windows for small projects and here are the steps to install a new Laravel 5.x project in Wamp server:

01 – Make sure you have the latest version of Wamp installed. This is required because Laravel may need an updated version of PHP if you are running an older version of Wamp. I had the 64-bit version of WampServer 3.0.6 when I was writing this post.

02 – Turn on Wamp server. Click on quick-launch Wamp icon > PHP > PHP Extensions and enable php_openssl, php_curl, php_sockets if they are not enabled.
Similarly, click on wamp icon > Apache > Apache Modules and enable ssl_module if it is not enabled.

03 – You’ll need Composer, a PHP dependency tool, to install Laravel. Download it from

04 – Install Composer. When it asks for the location of command line PHP, point it to the PHP.EXE file inside {Wamp installation path}\bin\php\{Your PHP Version}. For example, in my case, the required PHP.EXE file was inside c:\wamp64\bin\php\php5.6.25

05 – When Composer installation is finished, open up a command-line interface (Command Prompt in Windows by default) and run the following command to check if the installation is okay.


For instance, here is what I saw in Rubi Terminal:

Composer installation confiramtion
Composer installation confirmation

If you are not familiar with console or terminal I suggest you learn that quickly or else, your work is going to be very inefficient. Here is a list of basic console commands for Windows users.

06 – From command line, download the Laravel installer using Composer with the following command:

composer global require "laravel/installer"

Upto this point everything has been done globally, meaning you don’t need to repeat them for your new Laravel projects onward.

07 – To create a new Laravel project, go to Wamp’s localhost folder (C:\wamp64\www in my case)

cd /d C:\wamp64\www

Now from here, the laravel new command will create a fresh Laravel installation in localhost. For instance, the following command will create a folder named blog containing a fresh Laravel installation with all of Laravel’s dependencies already installed:

laravel new blog

08 – When command-terminal shows that everything has been installed, type the following address in your browser and you’ll see the Laravel default screen.


This will confirm that your Laravel installation is working.


6 thoughts on “How to install a Laravel 5 project in Wamp server

  1. it gives me this message now
    ‘php’ is not recognized as an internal or external command,
    operable program or batch file.


Ask a question or leave a reply!

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s