Deploy PHP

Deploy custom PHP applications with Wodby’s managed PHP stack. Use a repeatable deployment model, keep your services organized, and scale PHP workloads without reinventing the stack.

Start from a managed PHP stack

Deploy PHP applications without assembling the full stack yourself from separate services, deployment steps, and environment settings.

Keep custom PHP deployments flexible

Use a managed stack that gives you room to compose the services your application needs while keeping the workflow consistent.

Simplify day-to-day operations

Use built-in deployment tooling, backups, SSL, and infrastructure features so PHP teams spend less time on repetitive operations.

Build and release

What a PHP deployment does on Wodby

A PHP deployment on Wodby builds the PHP image and the web server image from the same source, starting from the Composer boilerplate or your own repository. The document root setting decides what the web server serves.

Point the docroot at the front controller

The Nginx docroot is a directory called public unless you change it, and it must be the one that holds your front controller. A request that matches no file is handed to that controller.

Missing static files return 404

A request whose path ends in a static file extension but matches no file is answered with 404 and is not passed on to the application. Nginx does not read htaccess files either.

Choosing Apache

The Apache docroot starts empty, so until you set it Apache serves the root of the repository. Apache does read htaccess files, and sending every path to the front controller is up to your own rules there.

No hardcoded connections

Database and mail settings reach the PHP service through its links and exist only while the linked service is enabled. Read them from the environment; do not write them into the code.

Read the PHP stack guide for setup steps, settings, and limits.

Bring an existing application

Plan your PHP migration with your agent

Give your coding agent access to your repository and connect Wodby through MCP. Ask it to map your app to maintained services and flag what needs to change before deploying.

Review the plan first, then approve an isolated staging deployment. Production data transfer and cutover need separate approval. MCP access does not itself grant access to your repository.

PHP migration planning prompt
Load Wodby’s migration guidance. Inspect this PHP application repository and propose a Wodby deployment plan. Identify the runtime, database, background jobs, persistent files, and required secret names without revealing values. List missing information and plan an isolated staging deployment. Do not create resources, transfer production data, change DNS, or deploy anything yet.

A modern deployment model for PHP applications

PHP teams need a way to standardize deployments, isolate supporting services, and scale applications with a more modern hosting model.

Wodby packages that into a managed PHP stack built on managed and self-hosted Kubernetes foundations, so you can deploy custom PHP workloads without maintaining a bespoke setup for every project.

A practical fit for custom PHP workloads

  • Keep web, PHP runtime, cache, and database services organized in one stack.
  • Scale PHP applications and supporting services as workload demands change.
  • Use the same deployment model across development, staging, and production.
  • Reduce custom work around SSL, backups, infrastructure updates, and releases.

What you get with Wodby

  • Managed PHP stack for modern container-based deployments
  • Built-in CI/CD with image builds, deployment history, and rollback attempts
  • Controlled automatic updates for stack services, app environments, and infrastructure
  • Automated backups and imports for safer releases and migrations
  • Managed routes, endpoints, and domain setup
  • App service controls for settings, resources, links, volumes, actions, and terminal access
  • Open, portable infrastructure via Wodby’s platform model

How PHP deployment works on Wodby

  1. 1

    Choose the infrastructure model that fits: managed Kubernetes from your preferred provider or a self-hosted Kubernetes setup on your own servers for budget hosting.

  2. 2

    Create a new app from the PHP stack and connect your repository.

  3. 3

    Configure services, domains, environment variables, persistent volumes, and databases.

  4. 4

    Deploy changes through the built-in CI/CD workflow and scale services as requirements grow.


Read more about stack management in our documentation.

Suitable for custom PHP projects and multi-app environments

If you deploy multiple PHP applications, need a repeatable stack, or want to move to Kubernetes without rebuilding your hosting model from scratch, this setup fits that need.

Wodby gives PHP teams a managed stack with room for customization through services and integrations, while keeping Kubernetes available as the infrastructure standard for larger workloads.

Still choosing where to run it? Compare the options on the PHP hosting page.

Start deploying

Want to launch PHP with less setup overhead?

Start with Wodby's managed PHP stack, connect your repo, and handle deployments, environments, and operations in one place.

Stack-specific feature

Keep local PHP environments consistent with Docker

Use Wodby’s Docker4PHP project to spin up a consistent local PHP environment with Docker Compose before you deploy to Wodby. It is built for local development across Linux, macOS, and Windows, so teams can standardize how custom PHP applications run on developer machines.

That makes the move from local development to managed hosting more predictable: work against a repeatable PHP stack locally, then deploy on Wodby with CI/CD, backups, certificates, and scalable infrastructure already in place.

Hosting options

Run your apps where it suits you

In your own cloud account, on a server you already rent, or on Wodby Cloud. The stacks and the deployment workflow are the same on all three, and Wodby maintains the cluster.

Lowest cost

Kubernetes on your own server

Use a dedicated server or VM you already rent, from Hetzner, OVH, or any other host. Wodby installs Kubernetes on it, keeps it up to date, and deploys your apps.

  • No managed control plane to pay for
  • One command installs Kubernetes on the server
  • Join more servers as worker nodes when you need capacity
  • Operating system updates install when you choose
Explore self-hosted Kubernetes

No account needed

Wodby Cloud

Deploy without a cloud account or a server of your own. Wodby creates and operates the cluster, and you pay for the nodes and storage you run.

  • Nothing to connect or set up before your first deploy
  • A free demo cluster to try the workflow first
  • Scales between the node counts you set
  • The same stacks and deployment workflow as your own cluster
See Wodby Cloud

Integrations

Keep third-party integrations organized and under control across all of your apps and environments

Connect services once and reuse them across your apps. Keep credentials out of repositories, manage configuration centrally, and override values for each environment.

See all integrations
Stack preview

PHP stack preview

Stack serviceBase serviceRole
Nginx (PHP)Primary
PHPRequired
MariaDBEnabled by default
MailpitEnabled by default
Apache HTTP server (PHP)Disabled by default
PostgreSQLDisabled by default
ValkeyDisabled by default
OpenSMTPDDisabled by default
GotenbergDisabled by default
OpenTelemetry CollectorDisabled by default

Keep moving

Explore the PHP setup, then start your own deployment

Once you've reviewed the stack structure, create an account to launch PHP, connect your repository, and keep delivery inside the same workflow.

Trusted by developers and businesses worldwide since 2015

Wodby is a reliable cloud infrastructure partner for your business.
See what our customers say about their experience with Wodby.

  • We moved our Drupal hosting to use Wodby and changed our development workflow to use Docker at the same time. Now we can concentrate on Drupal development and we're not losing time configuring servers etc. When a site needs additional resources or hosting in a different region we can be way more responsive as deploying a new instance takes no time at all.

    Tony Miller
    Eighty Options
    Tony Miller, Eighty Options
  • Wodby’s innovative infrastructure helped us to increase the speed and simplify our app deployment, while also leaving us the freedom of handling our hosting and not locking us on a specific pattern. We are now much more robust for future growth and will be able to innovate faster.

    Martin Normann Lund
    Ramsalt Lab
    Martin Normann Lund, Ramsalt Lab
FAQ

Frequently Asked Questions

Have questions? We've got answers. If you don't see your question here, feel free to reach out.

Get started

Ready to deploy PHP?

Choose Wodby Cloud, managed Kubernetes, or your own server, then deploy stacks with CI/CD, backups, SSL, integrations, and environment management in the same platform.

  • Run the same stack workflow on Wodby Cloud, managed Kubernetes, or your own server
  • Deploy app environments for production, staging, previews, and development
  • Use Wodby CI or your existing pipeline with the Wodby CLI
  • Keep backups, certificates, integrations, and access control in the platform

Start for free

No credit card required
$0/month
  • 10 app services
  • 30 minutes of integrated CI
  • 5 GB of private registry
  • Stacks & integrations
  • Technical domains with SSL
Create free account
Upgrade when you need more capacity