Laravel is a PHP framework built around abstraction: do more with less coding. Laravel runs off PHP and MySQL. It is supported on any package, but works best with a package that supports terminal access. For this guide, we will assume terminal access is available.
Begin by logging into the terminal.
- PREREQUISITE: Install Composer if it has not already been installed.
- Install Laravel in a new directory called
cd /var/www composer create-project laravel/laravel laravel
Note: “laravel” is intentionally present 3 times, the argument format to
composer create-projectis channel/package directory
- Change permissions on Laravel asset directories to permit write-access of logs, compiled views, and temporary file storage.
cd laravel/ chmod -R 777 storage bootstrap/cache
- Connect Laravel to a subdomain or addon domain within the control panel under Web > Subdomains. Specify
public/for its document root; in the above example, this path is
php_value output_buffering 0