Order Laravel from the Marketplace App tab as shown in how to order a VPS with a one-click app. When the install card on your server page shows the finished result, follow the steps below.
What you get
A fresh Laravel project in /var/www/laravel, served by Nginx with PHP and MariaDB, plus Composer. It needs 1 GB of memory and takes 6 to 12 minutes.
1. Check it works
Open http://your-server-ip/. You see the Laravel welcome page. The server page lists the Laravel and Composer versions.
2. Work on the project
Connect with SSH and go to the project:
cd /var/www/laravel
php artisan --version
Replace it with your own code, or edit it in place. Run your commands with php artisan from that folder. Set your database details in the .env file there.
3. Domain and HTTPS
Point your domain at the server (guide) and add a free certificate (guide). Set APP_URL in .env to your https address.
4. Before going live
Set APP_ENV=production and APP_DEBUG=false in .env, so error details are not shown to visitors.
Next steps
- Connect to your VPS with SSH to run the commands above.
- Secure your new VPS before you put real data on it.
- Something not working? See what happens after you order an app, or open a ticket from Support.