Friday, June 14, 2013

Installing Laravel in wamp by Composer

Are you going to install Laravel in WAMP? So you have to install composer windows installer to achieve your target. After installing composer you can normally run composer in command prompt.

Here are the two methods of installing Laravel by Composer.

  • composer create-project laravel/laravel your-project-name
  • composer install
    (To install dependencies after manually downloaded the files)
   But when run this command I got some problem. I got this error message,


PHP Warning:  file_get_contents(http://github.com/patricktalmadge/bootstrapper/zipball

/master): failed to open stream: Unable to find the socket transport "ssl" -
did you forget to enable it when you configured PHP? in C:\wamp\www\laravel-m
aster\laravel\cli\tasks\bundle\providers\provider.php on line 69


 After I Googled, there are various answers to this problem.

;extension=php_openssl.dll

Uncomment this line in php.ini file. But just remember there are two php.ini files in Wamp Server. It didn't work for me by right clicking Wamp icon and select php.ini file. Rather than I had to manuallu search for php.ini files. Those are in

  1. C:\wamp\bin\php\php5.3.13\php.ini
  2. C:\wamp\bin\apache\apache2.2.22\bin\php.ini
So just uncomment in both files. It'll work nicely.:)

Sources :
http://laravel.com/docs/quick
http://stackoverflow.com/questions/13276298/cannot-install-laravel-bundle
http://www.nemesis.co.nz/2013/05/composer-and-wamp-unable-to-find-the-socket-transport-ssl/#comment-265


No comments: