• Laravel in South Africa
  • Redis and PostgreSQL
  • First month free

Laravel Hosting Requirements: What Your App Really Needs

Laravel's official hosting requirements cover PHP only. See what a production Laravel app needs, and how shared hosting, a VPS and HCode compare.

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 .env settings.
  • 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.

RequirementWhat Laravel needs
PHP versionPHP 8.3 or newer for Laravel 13 (Laravel 12 needs PHP 8.2 or newer)
PHP extensionsCtype, cURL, DOM, Fileinfo, Filter, Hash, Mbstring, OpenSSL, PCRE, PDO, Session, Tokenizer, and XML
ComposerTo install the packages your app depends on
Web server setupEvery request sent to public/index.php
Writable foldersThe 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 needsWhy it matters
A databaseEloquent needs somewhere to store users, orders, and everything else
RedisFast cache, sessions, and a reliable home for queued jobs
An always-on queue workerSends emails, processes uploads, and runs slow jobs in the background, so visitors don't wait
A schedulerLaravel's scheduler expects to run every minute to fire your scheduled tasks
A safe home for .envYour APP_KEY, database passwords, and API keys must stay out of your code and out of public view
APP_DEBUG set to falseDebug mode in production can show sensitive settings to visitors
HTTPS and your own domainLogins and payments need a secure connection
Restarts after each releaseQueue 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.

Laravel hosting requirements: the official list (PHP 8.3+, PHP extensions, Composer, the public/index.php setup, writable storage) compared with what a production app adds (a database, Redis, an always-on queue worker, a scheduler, a safe .env, and HTTPS).

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.

RequirementShared hostingVPSManaged app platform
PHP and extensionsUsually yesYou install themHandled for you
Domain pointed at publicDepends on the hostYou configure itHandled for you
DatabaseUsually MySQLYou install itOften included
RedisRarelyYou install itOften included
Always-on queue workerRarelyYes, with a process managerYes, as a worker
SchedulerCron, if the host allows itCronDepends on the platform
Who maintains itThe host, within limitsYouThe 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 public folder. Many plans point your domain at a fixed folder, which tempts people into moving index.php to 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:

  1. Does it support a current PHP version and the extensions Laravel needs?
  2. Can your domain point straight at the public folder, without workarounds?
  3. Can it run a queue worker that stays on, and restart it after each release?
  4. How does the scheduler run? Through cron, or a long-running process?
  5. Is a database and Redis included, or will you be buying them separately?
  6. Where do your .env secrets live, and are they kept out of your repository?
  7. 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:

  1. 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.
  2. Connect your code. Link your GitHub repository or upload a .zip, then copy your .env values into the panel as environment variables.
  3. Push. HCode detects PHP, installs your dependencies, builds the app, and serves it over HTTPS.
Laravel requirementOn HCode
PHP and extensionsPHP detected and built for you; bring a Dockerfile if you need a specific extension or setup
Domain and SSLA free subdomain on the first deploy, then your own domain with automated SSL
DatabaseManaged PostgreSQL included, backed up daily
RedisManaged Redis for cache, sessions, and queues
Queue workerRuns as a background worker beside your app, on the same private network
SchedulerNo built-in cron, so you run Laravel's scheduler in a long-running background worker
.env secretsStored encrypted in the panel, never in your repository
Safe releasesNew 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.

Avatar for Ashwin S.

The Author

Ashwin S.

Ashwin is a content specialist at HostAfrica, where he's been crafting clear, authoritative copy since 2021. With a background in digital marketing and a passion for impactful storytelling, he turns complex ideas into trustworthy, engaging content. Ashwin writing helps our audience navigate web hosting and cloud solutions with confidence.

Your Laravel App, Every Part of It Running

Push your code, and HCode builds your Laravel app, runs your queue worker, and keeps PostgreSQL and Redis right beside it. One flat price in rand.

Your first month is on us with codeHCODEFREE2026