In this tutorial, you will learn install laravel 6 in ubuntu. i explained simply step by step install laravel 6 in ubuntu 16.04 it's simple example of install laravel 6 in ubuntu 18.04 we will help you to give example of install laravel 6 in ubuntu 16.04 using composer You just need to some step to done install laravel 6 in ubuntu 19.04.
I will give you step by step instruction of how to install laravel in ubuntu os. so you have to just follow bellow step to installing laravel in ubuntu.
First you can see basic information of what is laravel let's see:
What is Laravel?
Laravel is a free open source PHP framework based on the MVC pattern. It's creatd by Taylor Otwell. Laravel provides expressive and elegant syntax that helps in creating a wonderful web application easily and quickly.
You can follow bellow step to install laravel in ubuntu:
First step, we need to install composer. we must have to install composer in ubuntu system. you can install composer in your ubuntu system by using following command:
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
sudo chmod +x /usr/local/bin/composer
You must have some basic requirement of your ubuntu system. so you can see bellow basic requirement as listed bellow:
PHP >= 7.2.0
BCMath PHP Extension
Ctype PHP Extension
JSON PHP Extension
Mbstring PHP Extension
OpenSSL PHP Extension
PDO PHP Extension
Tokenizer PHP Extension
XML PHP Extension
Now you can run bellow command to install laravel project in your ubuntu system. so let's run bellow command:
composer create-project --prefer-dist laravel/laravel blog
Now it's install completed.
But if you have any permission issue then you can give permission to your storage folder as like bellow:
sudo chmod -R 777 storage
sudo chmod -R 777 bootstrap
Now we are ready to run project using serve command:
php artisan serve
Now you can open url as bellow:
I hope it can help you...
Do you like below Tutorials ?
- Laravel 5.6 - Collection could not be converted to int
- Laravel - How to generate secure https URL from route?
- Laravel - Vue JS File Upload Example
- How to get last 7 days data in Laravel?
- Laravel Validation required if other field empty example
- Laravel Eloquent - When Case Statement in Select Query Example