Tuesday, March 8, 2016

Install Laravel Framework on WAMP(Windows) Server

Laravel is a free, open-source PHP framework created by Taylor Otwell on June 2011.It's use for developing web application based on Model View Controller (MVC) patten.There are many others PHP based frameworks likes Codeigniter, Symfony, Yii and many more but Laravel is most famous and used framework on 2015.It's easy for this framework install in linux server.
Here describe some basic steps for install laravel on window (WAMP) server and configure that.follow below steps for that.
  • Download Laravel latest version form Github (Check your PHP version configuration for that).
  • Extract all directory and files in your WWW folder on WAMP.
  • Enable OpenSSLfrom Wamp icon->PHP->Php extensions `php_openssl` and Wamp icon->Apache->Apache modules `ssl_module`
  • You can also enable ssl from php.ini file in `C:\wamp\bin\php\{PHPVersion}\` and apache `C:\wamp\bin\apache\{ApacheVersion}\bin`find `;extension=php_openssl.dll` and remove preceding semicolon (if there is).
  • Download Composer exe file setup from Here.
  • Run setup file and click on next (Select Shell Menus option).
  • Than enter `php.exe` file location path as  `C:\wamp\bin\php\{PHPVersion}\php.exe`.
  • Open CMD(Command Line Interface) window using  Ctrl+R and enter 'cmd'.
  • Enter directory where you install Laravel using CD command `C:\wamp\www\laravel`
  • Now run below code in cmd window.
    composer create-project laravel/laravel NEWPROJECT --prefer-dist
  • This will install Laravel in a sub directory named NEWPROJECT under current working directory.
Most of common error display in Laravel 5 is 'Failed opening required bootstrap/../vendor/autoload.php'.
This error display when Laravel dependency not installed properly. that time delete all data in newly created directory 'NEWPROJECT ' and open cmd navigate to Laravel directory and run below command.
composer create-project laravel/laravel NEWPROJECT

No comments :

Post a Comment