Monday 20 February 2017

How to install Laravel for window

Here are the steps to install Laravel for window (WAMP)

First You need to install Composer 

  1. Before Installing Composer Check openssl is enable or not else do the following two steps.
  2. Click on WAMP icon->PHP->PHP Extensions and enable: php_openssl, php_curl, php_socket.
  3. Click on wamp icon->Apache->Apache Modules and enable ssl_module
  4. Open Page  https://getcomposer.org/download/
  5. click on link Composer-Setup.exe
  6. It will ask you to Save the SetUp File in your computer
  7. Click on the Setup file which you have downloaded, it will start the Installation Process
  8. while setup is running , it will ask for PHP.exe path. (C:\wamp\bin\php\php5.5.12)
  9. After successfully finish of installation go to Command prompt (CMD)
  10. Type composer , C:\> composer
  11.  it will display all the commands related to composer with a "COMPOSER" display on screen. this means that composer is successfully installed in your system.


Now Install Laravel 
  1. In Command prompt go to wamp folder  C:\ > cd wamp\www
  2. Now type  composer create-project --prefer-dist laravel/laravel testproject
  3. C:\wamp\www>   composer create-project --prefer-dist laravel/laravel testproject
  4. where "testproject" is the name of project , you can have any other name also.
  5. Running the above command will install Laravel inside testproject , this process will take time.
  6. After successful installation you get a message of "Application key set successfully"
  7. Then go to testproject and type following command
  8. C:\wamp\www\testproject> php artisan serve . it will display following message
  9. Laravel development server started on http://localhost:8000/
  10. Now start your Wamp server in windows. And type  http://localhost:8000/  in Browser.
  11. It will Display  " Laravel 5"  on the browser screen. 
  12. To Stop artisan server press Clt + C in command prompt.