How to Install Laravel 5.1 Framework in Ubuntu

Laravel is one of the most sought after and the best PHP frameworks. So, if you’re a web application developer, you’d want to get your hands on this amazing web framework. Have you tried installing the Laravel framework in your Ubuntu? If you’re stuck, here’s how you do it.

Before you begin,

There are a few prerequisites that must be taken care of before you install Laravel. Make sure you’ve done all of these before you jump to the task at hand.

  • Configure LAMP Tech
    • Update your Ubuntu and install git, curl, wget…
    • Install Apache
    • Install PHP and related modules
    • Install my SQL
  • Install composer to download Laravel

Step 1. Change your directory

Change your directory to where you want your Laravel installed.

cd ~composer create-project –prefer-dist laravel/laravelproject

This command will create a new project directory.

Step 2. Make accessible

Make sure that your project and its storage directory is accessible.

$chmod -R 755 ~/laravelproject
$chmod -R 777 ~/laravelproject/storage

This will help you easily locate your project files.

Step 3. Start the project

Go to your project directory.

$cd laravelproject

Then, start the project.

$php artisan serve

Step 4 . Verify installation

Now that it’s all done, it’s time to verify the installation. So, open the following link where you’ll be able to see your project.

We genuinely hope that this guide was useful to you. Feel free to leave your doubts in the comments section. We would be happy to help.