We install and run Laravel 5.7 on Ubuntu 18.04.
First, we install PHP extension-packages needed to install Laravel.
sudo apt install php-mbstring php-xml php-json
We manage packages of Laravel by Composer, a package manager. Please run commands below to download and install it.
curl https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
Please move from the current directory to a directory you use for a Laravel project and run a command below to create a Laravel project. You write your project name instead of PROJECT_NAME.
composer create-project --prefer-dist laravel/laravel PROJECT_NAME
Please move from the current directory to the directory PROJECT_NAME and run the server by Artisan, the command interface of Laravel.
cd PROJECT_NAME
php artisan serve
Please go to http://localhost:8000/
It is successful if you see 'Laravel' on the page!