How to Install Laravel 5 in ubuntu using composer



Step to install Laravel 5 on ubuntu using composer

Kindly make sure you install php and mysql.

On terminal:

1. Install composer

sudo apt-get install composer

2. Test composer using the command
composer

3. Install laravel[Excute below command]

composer create-project –prefer-dist laravel/laravel blog

It will create the the blog directory with all dependency.

4. After install go to blog directly using below command

cd blog

5. Run below command to create environment to run Laravel
Each time you required to run this command to run the laravel

php artisan serve

6.Run laravel on browser and paste below

http://localhost:8000

It will display the laravel default page.

7. Edit config/database.php file to edit database and app.php to setup environment[prodution or dev]

Also please refer laravel doc
https://laravel.com/docs/5.3/installation

source

Reply


Build A Site Info