The hosting plan said "PHP 8 supported", so you uploaded your Laravel project and called it a day. The homepage loads. Then the welcome emails never send, the nightly report never runs, and the queue keeps quietly piling up like dishes in a shared-house sink.
That's the gap most hosting pages skip. Laravel's official hosting requirements only cover what PHP needs to run the framework. A production Laravel app needs a lot more around it. This guide covers both lists, shows how to host a Laravel website so every part of it actually works, and explains what to look for when you compare hosts.
New to app hosting in general? Our guide to web app hosting covers the basics.
Key Takeaways: Laravel Hosting Requirements
- Laravel's official requirements cover PHP only: a supported PHP version, a set of PHP extensions, and Composer.
- A production Laravel app needs more: a database, Redis, an always-on queue worker, a scheduler, writable storage, and a safe home for your
.envsettings. - Shared hosting suits simple Laravel sites, but queue workers and Redis are where it usually runs out of road.
- Laravel works with PostgreSQL out of the box, so moving off MySQL is usually a settings change.
- HCode runs your Laravel app, queue worker, Redis, and PostgreSQL together in South Africa, from R50 a month.
Laravel Hosting Requirements: The Official List
Laravel's official hosting requirements are a minimum PHP version, a set of PHP extensions, and Composer to install your Laravel project's dependencies.
| Requirement | What Laravel needs |
|---|---|
| PHP version | PHP 8.3 or newer for Laravel 13 (Laravel 12 needs PHP 8.2 or newer) |
| PHP extensions | Ctype, cURL, DOM, Fileinfo, Filter, Hash, Mbstring, OpenSSL, PCRE, PDO, Session, Tokenizer, and XML |
| Composer | To install the packages your app depends on |
| Web server setup | Every request sent to public/index.php |
| Writable folders | The storage and bootstrap/cache directories |
Source: Laravel's deployment documentation.
That web server line matters more than it looks. Laravel's docs warn against moving index.php to your project's root, because serving the app from there can expose sensitive configuration files to the public internet. On hosting that can't point a domain at the public folder, that's exactly the shortcut people end up taking.
What a Production Laravel App Needs on Top of That
The official list gets Laravel running. Real Laravel applications also need a handful of services around them, and this is where most hosting falls short.
| What your app needs | Why it matters |
|---|---|
| A database | Eloquent needs somewhere to store users, orders, and everything else |
| Redis | Fast cache, sessions, and a reliable home for queued jobs |
| An always-on queue worker | Sends emails, processes uploads, and runs slow jobs in the background, so visitors don't wait |
| A scheduler | Laravel's scheduler expects to run every minute to fire your scheduled tasks |
A safe home for .env | Your APP_KEY, database passwords, and API keys must stay out of your code and out of public view |
APP_DEBUG set to false | Debug mode in production can show sensitive settings to visitors |
| HTTPS and your own domain | Logins and payments need a secure connection |
| Restarts after each release | Queue workers keep running old code until they're restarted |
The queue worker and the scheduler are the two most hosts miss. Both need a process that keeps running after you close your laptop, and plenty of hosting simply isn't built for that. Without them, your Laravel app looks fine on the surface while jobs pile up underneath.

How to Host a Laravel Website: Your Options
There are three realistic ways to host Laravel apps, and they differ in how much of both lists you handle yourself.
Shared hosting gives you PHP and usually a MySQL database at a low monthly price. It covers the official requirements well, but the production list is harder.
A VPS gives you a whole server. You can meet every requirement on both lists, as long as you install, configure, secure, and maintain it all yourself.
A managed app platform builds and runs your app for you, and the better ones run the database, Redis, and workers beside it.
| Requirement | Shared hosting | VPS | Managed app platform |
|---|---|---|---|
| PHP and extensions | Usually yes | You install them | Handled for you |
Domain pointed at public | Depends on the host | You configure it | Handled for you |
| Database | Usually MySQL | You install it | Often included |
| Redis | Rarely | You install it | Often included |
| Always-on queue worker | Rarely | Yes, with a process manager | Yes, as a worker |
| Scheduler | Cron, if the host allows it | Cron | Depends on the platform |
| Who maintains it | The host, within limits | You | The platform |
Can You Host Laravel on Shared Hosting?
Yes, for simple Laravel sites, but it gets awkward once your app relies on queues, Redis, or scheduled tasks.
Shared hosting handles PHP websites well, and a small Laravel project, such as a brochure site with a contact form, can run happily there. The friction shows up in four places:
- The
publicfolder. Many plans point your domain at a fixed folder, which tempts people into movingindex.phpto the root. Laravel's own docs warn against it. - Composer and SSH. Without command-line access, installing dependencies and running Artisan commands turns into a game of upload-and-hope.
- Queue workers. Shared hosting usually stops long-running processes, so a worker that should run all day keeps getting cut off.
- Redis. It's rarely offered, which leaves you running cache and queues on the database or the file system.
If your Laravel app sends emails in the background, processes payments, or runs jobs on a schedule, you've outgrown shared hosting. That's not a failure; it just means you're building something bigger than a website.
What to Look for in the Best Hosting for Laravel
The best hosting for Laravel is the one that covers both lists without turning you into a full-time server admin. Check any host against these seven questions:
- Does it support a current PHP version and the extensions Laravel needs?
- Can your domain point straight at the
publicfolder, without workarounds? - Can it run a queue worker that stays on, and restart it after each release?
- How does the scheduler run? Through cron, or a long-running process?
- Is a database and Redis included, or will you be buying them separately?
- Where do your
.envsecrets live, and are they kept out of your repository? - What happens when a release breaks? Can you roll back quickly, and does a failed build stay away from your live site?
Two more questions matter for South African teams: where your app and data are hosted, and whether you're billed in rand or dollars.
MySQL or PostgreSQL for Your Laravel App?
Laravel works with both MySQL and PostgreSQL out of the box, so the choice is usually less dramatic than it sounds.
Many Laravel projects start on MySQL because it's the default on most shared hosting. But Eloquent and Laravel's query builder support PostgreSQL just as well. For most Laravel apps, switching is a matter of setting DB_CONNECTION to pgsql, adding the new connection details, and running your migrations.
The exceptions are worth checking before you move:
- Raw SQL queries written specifically for MySQL may need small changes.
- MySQL-only column types or functions used in migrations may need a PostgreSQL equivalent.
- Existing data needs moving, which is a one-off job rather than a daily chore.
This matters on HCode, because its managed databases are PostgreSQL and Redis. If your app leans heavily on MySQL-specific features, the HostAfrica team can help you plan the switch. Our PostgreSQL hosting page explains how the managed database works.
Hosting a Laravel App on HCode
HCode is HostAfrica's managed app platform, built to cover both lists for Laravel applications without a server for you to manage. Getting started takes three steps:
- Pick a plan. Choose one on the Laravel hosting page and order it in the HostAfrica client panel. Plans start at R50 a month, and code HCODEFREE2026 makes your first month free.
- Connect your code. Link your GitHub repository or upload a .zip, then copy your
.envvalues into the panel as environment variables. - Push. HCode detects PHP, installs your dependencies, builds the app, and serves it over HTTPS.
| Laravel requirement | On HCode |
|---|---|
| PHP and extensions | PHP detected and built for you; bring a Dockerfile if you need a specific extension or setup |
| Domain and SSL | A free subdomain on the first deploy, then your own domain with automated SSL |
| Database | Managed PostgreSQL included, backed up daily |
| Redis | Managed Redis for cache, sessions, and queues |
| Queue worker | Runs as a background worker beside your app, on the same private network |
| Scheduler | No built-in cron, so you run Laravel's scheduler in a long-running background worker |
.env secrets | Stored encrypted in the panel, never in your repository |
| Safe releases | New releases go live without downtime; a failed build never replaces the live app, and rollbacks take one click |
Everything runs in South Africa, on one flat price in rand, with HostAfrica support available 24/7.
Prefer to Run It Yourself?
If you want full control over PHP, Nginx, and every setting on both lists, a HostAfrica Linux VPS gives you the whole server. Our guide on moving an app from GitHub to a VPS covers the general workflow, from the first SSH login to a live domain.
FAQs: Laravel App Hosting Requirements
What Are Laravel's Hosting Requirements?
Laravel 13 needs PHP 8.3 or newer, a set of PHP extensions including PDO, Mbstring, OpenSSL, and XML, and Composer. In production, your app also needs a database, a web server pointed at the public folder, and usually Redis, a queue worker, and a scheduler.
Where Should I Host a Laravel App?
For a simple Laravel site, shared hosting can work. For Laravel apps with queues, scheduled tasks, or Redis, use a managed app platform or a VPS, so your workers can stay running.
Can I Host Laravel on Shared Hosting?
Yes, for simple sites. Shared hosting usually struggles with always-on queue workers, Redis, and pointing your domain at the public folder.
Is There Free Hosting for a Laravel Project?
Some providers offer free tiers, but they rarely include always-on workers or a production-ready database. HCode has no free tier, but code HCODEFREE2026 gives you your first month free.
Does Laravel Work With PostgreSQL?
Yes. Laravel supports PostgreSQL out of the box. Set DB_CONNECTION to pgsql, add your connection details, and check any raw MySQL queries before you switch.
Can I Run Laravel Queue Workers on HCode?
Yes. HCode runs your queue worker as a background worker beside your Laravel app, with managed Redis available as the queue backend.
