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.
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