# Some hints and best practices for deploying laravel on shared hosts

## Discuss these articles on GitHub

{% embed url="<https://github.com/snapey/LaravelSharedHosting/discussions>" %}
Discuss these pages on Github
{% endembed %}

The following articles assist with the deployment of a Laravel project on so called shared hosting accounts.  Many of the techniques are actually from VPS deployments so starting with shared hosting can put knowledge in place for when you need to deploy your growing project to servers with dedicated resources.

## Why shared hosting?

As a solo developer or a small team without DevOps resources, shared hosting can play a useful part in your server resource pool.  Often you can deploy many sites under a single monthly fee (rather than per droplet) meaning you can try out ideas without spinning up additional costs.  Use cases include;

* Staging sites
* Proof of Concept (POC) sites
* Portfolio sites with anticipated low traffic
* Learning resources
* Testing public endpoints for webhooks and hosted APIs

In addition, a shared hosting account can come with resources such as **domain name registration**, **DNS management**, and **Email accounts** and forwarders.  You don't get any of these when purchasing a VPS.  You can use an email account provided by the shared host to send email from your Laravel application rather than trying to use a 'personal' account.

## Contents

* [SiteGround Shared Hosting](https://laravelsharedhosting.novate.co.uk/siteground-shared-hosting/introduction)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://laravelsharedhosting.novate.co.uk/some-hints-and-best-practices-for-deploying-laravel-on-shared-hosts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
