How to Install Laravel
Laravel is a free and open-source PHP framework. This tutorial will show you how to create a new Laravel 5 app on your server.
Creating an App in ServerPilot
First, click + Create App in ServerPilot; this can be done immediately after connecting a server or by going to the Apps page.
Replace all instances of the serverpilot system user in this tutorial with the one you just created.
Give your app a name and select the runtime you would like to use.
Next, select your app's server and the system user to run this app.
Click Create App to submit the form. You'll be shown some details about the app.
Installing the Laravel Framework
Now, it's time to install the Laravel framework in your new app.
SSH in to your server as serverpilot and run the following commands (where APPNAME is the name of your app):
cd apps rm APPNAME/public/index.php rmdir APPNAME/public composer7.2-sp create-project --prefer-dist laravel/laravel APPNAME
This final command will take several minutes to complete. You should see many packages download and install.
You now have a fresh Laravel 5 application ready for development.
Last updated: February 08, 2018