---
title: "Deploy PHP 8.6 Starter"
description: "PHP 8.6.0 from official source, with nginx and php-fpm"
category: "Starters"
url: https://railway.com/deploy/php-86-starter
---

# Deploy PHP 8.6 Starter

PHP 8.6.0 from official source, with nginx and php-fpm

**[Deploy PHP 8.6 Starter on Railway](https://railway.com/template/php-86-starter)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/php-86-starter/manifest.json

- **Creator:** ninja
- **Category:** Starters
- **Total deploys:** 4

## Template content

### php-86-starter-railway

- **Source:** AdeelAhmedKhan/php-86-starter-railway
- **Health check:** /api/health
- **Public domain:** Yes

## Documentation

# Deploy and Host PHP 8.6 Starter on Railway

PHP 8.6 Starter is a minimal, production-ready starting point for running PHP 8.6.0 on Railway. It builds PHP 8.6.0 from the official source, serves it with nginx and php-fpm, and includes /api/health and /api/info endpoints so you can verify the runtime and its PHP 8.6 features right after deploying.

## About Hosting PHP 8.6 Starter

Deploying this template builds a Docker image that compiles PHP 8.6.0 from source, configures nginx to proxy PHP requests to php-fpm, and exposes the app on Railway with public networking and a healthcheck on /api/health. No environment variables are required to run it; an optional DATABASE_URL can be set later if your app needs a database. Railway handles the build, deployment, and domain, so you can focus on writing PHP.

## Common Use Cases

- Starting a new PHP 8.6 web app or API without setting up servers
- Testing and demonstrating new PHP 8.6 language features
- Building a small service or prototype with nginx and php-fpm
- Learning how to containerize and deploy PHP on Railway

## Dependencies for PHP 8.6 Starter Hosting

- A Railway account and a Railway project to deploy into
- Docker, used by Railway to build the image from the included Dockerfile

### Implementation Details

The included Dockerfile compiles PHP 8.6.0 from the official source, installs nginx and php-fpm, and starts both services in the container. The railway.toml sets the Docker builder and the /api/health healthcheck, and the app listens on port 8080.

## Why Deploy PHP 8.6 Starter on Railway?


Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying PHP 8.6 Starter on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## Similar templates

- [Openfront Gym](https://railway.com/deploy/openfront-gym) — Opensource Mindbody alternative based on Next.js and Keystone.js
- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [Next.js + Prisma + PostgreSQL Starter](https://railway.com/deploy/nextjs-prisma-postgres) — Deploy a Next.js app with Prisma ORM and PostgreSQL in one click.

Open this page in a browser: https://railway.com/deploy/php-86-starter
