Step-by-step: How to install Laravel 5

Laravel, Laravel 5, 2015-06-16 23:56:19 UTC

1. Download Laravel installer using composer;

$ composer global require "laravel/installer=~1.1"



2. Open ~/.bashrc

$ nano ~/.bashrc



3. Add a line like below

export PATH="$PATH:~/.composer/vendor/bin"



4. Create your first Laravel 5 application

$ laravel new FirstApp

Or, you can create an application directly from composer

composer create-project laravel/laravel {directory} 5.0 --prefer-dist



5. Set up your Virtual host.
If you don't know how to set the virtual host up, just follow these steps.


6.  Naming your application

$ php artisan app:name Horsefly



7. Changing permission files/folders in the storage folder

$ chmod 775 -R storage



8. Open your browser and if you can see a page like bellow, you succeed

 


Share: