To install PHP 5.6 in Ubuntu 14.04 open the terminal and type:
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php5.6
Install Composer
sudo apt install curl
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
In Ubuntu 16.04 and later composer can be installed from the default Ubuntu repositories. Open the terminal and type:
sudo apt install composer
Create Laravel application:
composer create-project laravel/laravel [foldername]
Replace [foldername] with the name of the directory you want your new Laravel application installed to. It must not exist before installation. You may also need to add the Composer executable to your system path.
Run Laravel application:
php artisan serve
References:
• Laravel 5.3 Installation Documentation
• Laravel 5.3 Homestead Documentation - Laravel Homestead is an official, prepackaged Vagrant box that provides a development environment without requiring you to install PHP, a web server, and any other server software on your local machine.