🕺
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

Link this site into your webserver

Your site is still not visible.

This is because the SIteGround webserver has its document root looking at the public_html folder.

At this point, many deployment tutorials go horribly wrong by advising you to change the server.php file or to move the contents of the public folder into public html

NO we are NOT going to do that.

We are going to follow a simple two step process

Don't do this if your public_html folder contains content you need to keep

  1. delete the public_html folder rm -rf public_html

  2. Recreate it as a symlink pointing to the Live/public folder with the command; ln -s -n -f ~/www/smallchart.com/Live/public public_html

Now, the contents of public_html are the same as laravel's public folder and your new site should be Live.

PreviousCreate a deployment scriptNextSSL Certificate

Last updated 2 years ago