0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

How to Install Laravel on Ubuntu

0
Last updated at Posted at 2018-11-12

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!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?