🕺
LaravelSharedHosting
  • Some hints and best practices for deploying laravel on shared hosts
  • SiteGround Shared Hosting
    • Introduction
    • Prepare your Laravel project
    • Add a hosting account
    • SSH access to SiteGround space
    • Setup a mysql database
    • Adding a mail account
    • The master folder
    • Create a .env file
    • Connect your server to git
    • Create a deployment script
    • Link this site into your webserver
    • SSL Certificate
    • Setting up a CRON job
    • Running a Queue Worker
    • On-going deployments
    • Deploy from local development
    • Deploy using GitHub Actions
Powered by GitBook
On this page
  1. SiteGround Shared Hosting

Introduction

PreviousSome hints and best practices for deploying laravel on shared hostsNextPrepare your Laravel project

Last updated 2 years ago

SiteGround offer a number of hosting plans. This guide is for their shared hosting, not virtual private servers (VPS). They are suitable where you only expect a small number of concurrent users, or want to use the hosting as staging or to test out some design ideas with a client.

These instructions have been tested with their 'Go-Geek' plans, allowing multiple websites to be hosted under the same account.

There looks to be a lot of steps but each is very quick, and most will be needed in all hosting arrangements.

  1. Setup the server environment

  2. Create a database

  3. Clone the code to the server

  4. Composer Install the vendor folder

  5. Swap running site over to the new deployment

Plus optional steps to add an SSL certificate (why not), create a cron job to run the scheduler, send email or run a queue.

This article is not written with SiteGround input, but there is an affiliate link below which will help me if you can use it to start your SiteGround journey.