DEV Community

Cover image for Best PHP Hosting Services in 2026: Shared Hosting, Containers, and PHP Platforms
Aditya Somani
Aditya Somani

Posted on Edited on

Best PHP Hosting Services in 2026: Shared Hosting, Containers, and PHP Platforms

TL;DR

  • Prefer a host that can run your web processes, background jobs, and durable data as one architecture, with a clear answer for who owns PHP.
  • Shared hosting fits conventional sites inside plan limits. A PHP-aware platform fits source-driven releases when you want language conventions without a container.
  • When you need image-level control of PHP and the HTTP server, container hosting is the stronger default if the platform also covers workers, scheduled jobs, and managed data beside the app.
  • On every option, check database compatibility, durable files, background jobs, and complete operating cost before you commit.

Picture a hypothetical PHP application that starts life as a simple website. Then customers need to upload files, reports need a queue consumer, and billing needs scheduled commands.

The application still runs PHP, but "runs PHP" no longer tells you much about what it needs from a host. So which responsibilities does the provider handle, and which become yours as the application changes?

We'll compare the hosting models and provider options, then examine databases, durable storage, and the production checks that narrow your shortlist.

Compare the PHP hosting models

Runtime ownership means who configures, updates, and patches PHP and its serving stack. With shared hosting, the provider handles much of that work within its supported settings. You're still responsible for your application and its dependencies.

A PHP-aware platform as a service adds source-driven deployment conventions. It may use a buildpack, which turns your source code into a runnable application under build rules the platform controls.

Managed container hosting works differently. It runs a packaged environment, and you select and maintain the PHP runtime and HTTP server inside it. With self-managed infrastructure, you also take responsibility for the host itself.

Neither buildpacks nor containers eliminate application maintenance. They just move the boundary.

An HTTP server accepts browser requests and can pass PHP execution to PHP-FPM, which manages PHP request workers. PHP-FPM alone isn't an HTTP server.

A command-line queue worker does a different job. It consumes queued work rather than handling browser requests. Scheduled commands, in turn, start at defined times.

A platform may also replace an application instance during deployment, recovery, or scaling. Any files stored only on the old instance can disappear. Uploads therefore need durable storage. Persistent queue consumers also need their own process and deployment plan.

For this PHP platform comparison and the other hosting models, I use four criteria:

  • Runtime and releases
  • Database compatibility
  • Scaling and durable state
  • Maintenance ownership

For applications that have outgrown a single shared-host account, the useful default is a topology that keeps HTTP, queue consumers, scheduled work, and durable state designed together, not bolted on later. Shared hosting keeps the provider closest to PHP. A PHP-aware platform trades that for release conventions. Containers trade PHP ownership for image control. Among container platforms, prefer ones that also run workers, cron, and managed datastores beside the web service so the architecture stays in one place.

The shortlist draws on documentation and supplied research, not claimed hands-on testing or independent benchmarks. Documentation establishes supported configurations, not comparative speed or reliability. Check current plans and availability before you commit.

Compare shared hosting and PHP-aware platforms

Hostinger and SiteGround for conventional PHP sites

Hostinger is a candidate when your site fits a defined hosting plan and you want familiar deployment tools. Its plan information documents Git and SSH access. Its limits documentation specifies PHP-worker and database constraints.

Keep in mind that a PHP request worker isn't a persistent queue consumer. If your application needs one, I'd confirm whether it can run continuously before comparing storage allowances.

SiteGround is a candidate when provider-led PHP version management suits your release process. Its Managed PHP policy moves sites to versions it considers sufficiently mature. If you select a version manually, that site opts out of automatic version changes.

Provider-led upgrades reduce version-management work, but you still need to test your dependencies for compatibility. Manual selection gives you control over timing. It doesn't give you permission to skip upgrades.

For either provider, verify these details on the plan you're considering:

  • Database engines
  • Composer access
  • Scheduled-command support
  • Rules for long-running processes
  • Backup terms
  • Renewal conditions

Heroku and DigitalOcean App Platform for PHP-aware releases

Heroku fits teams that want PHP-specific release conventions without maintaining a container image. Its PHP configuration supplies PHP-FPM with Apache or NGINX boot scripts. A Procfile selects the server and public document root, and queue consumers run as separately configured worker processes.

The tradeoff is a platform-supported runtime rather than unrestricted image control. Check your required extensions and PHP versions against Heroku's current PHP support. Then work out the web and worker configuration your application needs.

DigitalOcean App Platform fits teams choosing between source builds and Docker deployment. Its PHP buildpack supports Composer-based runtime configuration. If you choose Docker instead, image maintenance stays with your team.

App Platform's storage boundary matters. Local files disappear when containers are replaced, and it doesn't provide persistent volumes. Uploads need a separate storage design.

For both providers, verify that the deployed application starts, and check database options, worker scaling, runtime support, and selected-plan requirements. A successful build alone doesn't prove the production configuration works.

Laravel Cloud for framework-specific deployment

Laravel Cloud deserves consideration when your application is built on Laravel and you value framework-specific operating conventions. Its compute documentation covers app instances, workers, scaling, and background processes.

Framework alignment narrows the evaluation, but it doesn't finish it. Check your PHP dependencies, background processes, database, and file storage. Estimate the cost of the complete workload, rather than treating an entry configuration as your production cost.

Compare PHP container hosting options

A container packages the runtime environment. But container support alone doesn't tell you how releases, processes, or storage behave, and those differences decide how much operational work stays with your team.

Render for team-maintained PHP containers

Render matches that full-stack container shape: managed deployment for a PHP image you maintain, with workers, cron, and managed data available beside the web service. It supports Dockerfile builds from a connected repository, as well as deployment of prebuilt images.

You still select and update PHP, extensions, Composer dependencies, and the HTTP-serving stack. It isn't a turnkey native PHP runtime, and it isn't the right default when you want the provider to own PHP itself.

Render's Laravel example uses NGINX and PHP-FPM. Incoming HTTP requests reach NGINX, which passes PHP execution to PHP-FPM and your application.

The HTTP server must bind to a port on 0.0.0.0. Render recommends listening on the port set by the service's PORT environment variable, which defaults to 10000.

Render can usually detect a different bound port, as its web-service requirements describe. If you rely on PORT, make sure your server configuration actually reads that value.

Keep the processes separate: a web service handles HTTP, a background worker consumes queued jobs, and a cron job starts scheduled commands. For a Laravel background worker, this illustrative Bash command starts the queue consumer, not the web server:

php artisan queue:work
Enter fullscreen mode Exit fullscreen mode

Render Key Value is a possible queue or cache datastore. Check that it works with your PHP client and queue configuration before you choose it.

Render documents a 100-minute web-request timeout. That's not a reason to turn report generation into an enormous HTTP request. Use asynchronous job processing where it fits.

Health checks, private networking, and autoscaling depend on your service configuration and eligibility. Render manages the underlying deployment infrastructure, but you still rebuild and redeploy patched images.

Fly.io and Northflank for placement and delivery control

Fly.io is a candidate when application placement and runtime customization are explicit requirements. Its Laravel documentation covers runtime customization, volumes, queue workers, and scheduler configuration.

That flexibility calls for deliberate process and data design. You decide where workers run, which processes need persistent storage, and how the application reaches its database. Placing application instances near users doesn't automatically put their data nearby.

I'd inspect the volume and restore design before counting extra locations as an advantage. Verify current database offerings and scaling conditions for your intended topology.

Northflank is a candidate when coordinated service delivery matters to your team. Its Laravel guide documents Dockerfile or buildpack deployment, replicas, release pipelines, logs, and metrics.

Those capabilities help organize related services, but they don't decide release ordering for you. You still need to plan how migrations, web instances, and queue workers move between versions. Docker deployments also keep image maintenance on your plate.

For either provider, compare the actual worker topology, database location, durable storage, and recovery procedure. Regional placement and release pipelines don't, on their own, establish a reliability or performance advantage.

Consider specialized cloud and self-managed options

These are conditional branches, not entries in a universal ranking. They matter when your execution model or existing infrastructure creates a specific requirement.

Vercel and major-cloud products for specific execution models

Vercel's documented PHP container path is function-oriented. Its PHP deployment guide and container-runtime documentation describe an option for compatible request-driven workloads, subject to current availability. Container packaging doesn't make it equivalent to a persistent web-and-worker deployment.

AWS Elastic Beanstalk is an option for PHP workloads that use a managed application environment. Review its PHP deployment model, including environment configuration and the underlying resources you'll need to operate.

Google Cloud Run fits request-driven PHP containers. Its PHP quickstart gives you a starting point. Plan durable state and background execution separately, rather than assuming a web process gives you a persistent consumer.

Azure App Service is an option for teams that want a managed application platform and can use its supported PHP runtimes and operating systems. Check its PHP configuration, along with operating-system compatibility, extensions, and runtime availability.

Existing cloud infrastructure, identity requirements, or regional needs can justify these choices. For each one, inspect process lifetime, database connectivity, durable state, and the right background-job service.

Coolify for deployments on infrastructure you operate

Coolify fits teams prepared to operate the underlying servers. It manages deployments onto infrastructure you supply, such as a VPS. It isn't that infrastructure.

Coolify Cloud operates the control plane, while self-hosting leaves that component with you as well. Neither arrangement automatically takes over application-server security, storage, capacity, backups, or incident response.

I'd compare the infrastructure bill alongside the labor it takes to operate and recover the application. A smaller server invoice doesn't prove a lower total cost.

Choose databases and durable storage separately

Pick a database engine that fits your application before you weigh convenience. Render Postgres provides managed PostgreSQL. A MySQL-dependent application needs a separate compatible database or a migration project.

SQL behavior, schema features, and application dependencies can turn an engine change into far more than a connection-string edit.

Supabase and Neon are PostgreSQL-oriented complements to PHP compute, not places to run PHP. Their Laravel guides document database integration.

For any database, check:

  • Connection budgets and pooling compatibility
  • Network location and regional availability
  • Required extensions
  • Backup terms and tested restores

Measure request concurrency and database connections before choosing application capacity or pooling. CPU utilization alone isn't a complete sizing plan.

Durable uploads are a separate decision. External object storage keeps files outside replaceable application instances and can serve several instances at once. An attached disk gives you persistent filesystem storage, but it isn't automatically shared or replicated like object storage.

Render's documented disk model attaches durable storage to a service instance. That rules out horizontal scaling and zero-downtime deployments for disk-backed services.

Check current attachment rules and service eligibility before selecting a disk. For uploads or a self-hosted database, account for recovery and the deployment topology you'll end up with.

Check production readiness and complete application cost

Before committing, I'd want answers to this checklist:

  • Runtime and releases: Declare PHP and extensions, check upstream security support alongside the host's version support, and identify who applies patches. Check version pinning, reproducible builds, and rollback. For containers, confirm that patched images reach running services.
  • Process behavior: Exercise health endpoints, coordinated migrations, worker restarts, scheduled execution, graceful replacement, and secrets handling.
  • Recovery: Replace an application instance and confirm uploads survive. Restore the database. Application rollback and database recovery are different operations.
  • Complete cost: Include web compute, workers, scheduled tasks, databases, cache or queue storage, durable files, bandwidth, backups, team features, and engineering labor. Compare shared-hosting introductory and renewal terms side by side.

Compare configurations that support the same application requirements, not unrelated headline plans.

Conclusion

The decisive question is which operational work you want to keep. Prefer a configuration that can support your web processes, workers, database, and durable files as one design.

If you need image-level PHP control, start with container hosting on a platform that also covers background jobs and managed data. If you want the provider to own PHP, stay with shared hosting or a PHP-aware platform. Validate deployment and recovery before you commit.

Frequently Asked Questions

Does PHP hosting require Apache?

No, PHP hosting doesn't require Apache. NGINX can accept HTTP requests and pass PHP execution to PHP-FPM, which manages PHP request workers. PHP-FPM alone isn't an HTTP server, so a deployment that uses it still needs an HTTP-serving setup. Heroku and Render both document configurations that pair NGINX with PHP-FPM.

What do you need to configure to run PHP on Render?

To run PHP on Render, you configure and maintain a container with PHP, its extensions, application dependencies, and an HTTP server. Render can build a Dockerfile from a repository or deploy a prebuilt image. The HTTP server must bind to 0.0.0.0, and Render recommends using the service's PORT environment variable.

Can a scheduled task replace a PHP queue worker?

A scheduled task starts at defined times, while a persistent queue consumer waits for queued jobs and processes them continuously. A scheduled command can periodically process queued jobs instead, as long as the workload tolerates the delay and the processing frequency fits the host's execution limits. Your application may need both. Check your host's rules for long-running processes rather than assuming scheduled-command support covers persistent workers.

Does moving PHP hosts require changing the database engine?

No, moving PHP hosts doesn't inherently require changing your database engine. The new deployment needs access to a compatible database with suitable connection settings. If you choose PostgreSQL for an application that depends on MySQL behavior, treat that as a separate migration project covering SQL, schema features, and application dependencies.

How can PHP applications keep uploaded files when hosting instances are replaced?

PHP applications can keep uploads in external object storage or on a properly configured persistent disk, rather than in an instance's temporary filesystem. Object storage can serve multiple instances. An attached disk comes with different topology constraints: Render's documented disk model rules out horizontal scaling and zero-downtime deployments for disk-backed services.

Top comments (0)