PHP (Apache)
Official Preset8.2-apacheCategory: Developer Tools & Utilities
Overview
The official PHP Apache container provides a pre-configured, production-ready environment for serving PHP scripts and applications. It includes Apache mod_rewrite for clean URLs and can be mounted with your custom code volume. tug.sh provisions this container with zero hassle, letting you drop your PHP files into a directory and go live immediately.
Primary Use Cases
Hosting custom PHP microservices, APIs, and administrative scripts
Running legacy web applications and bespoke client projects
Fast prototyping of server-rendered web applications
Static and dynamic mixed content hosting with .htaccess support
Key Features
- PHP 8.2 modern runtime with JIT compiler optimizations
- Apache 2 HTTP Server with mod_rewrite enabled
- Support for OPcache for faster execution cycles
- Configurable php.ini and virtual host overrides
- Minimal memory footprint for budget VPS instances
Container Specification
php:8.2-apache
8.2-apache
Automated Let's Encrypt (Caddy / Traefik)
Managed host volume mounts
How to Deploy PHP (Apache) with tug.sh
Connect your Linux server
Run the 1-line tug.sh agent install command on any Ubuntu, Debian, or Rocky Linux VPS.
Select PHP (Apache) from the Marketplace
Pick your domain name, configure custom environment variables if needed, and choose your persistent storage folder.
Click Deploy & Go Live
tug.sh pulls the container, sets up HTTPS certificates, configures the reverse proxy, and boots the service in under 60 seconds.
Deploy on Your Server
Experience effortless self-hosting. Deploy PHP (Apache) on Hetzner, DigitalOcean, or your home lab with zero maintenance headaches.
More in Developer Tools & Utilities

Affine Pro
Affine Pro is a modern, self-hosted platform designed for collaborative content creation and project management. It offers an intuitive interface, seamless real-time collaborati...

Answer
Answer is an open-source Q&A platform for building a self-hosted question-and-answer service.

Appsmith
Appsmith is a free and open source platform for building internal tools and applications.cms

Baikal
Baikal is a lightweight, self-hosted CalDAV and CardDAV server that enables users to manage calendars and contacts efficiently. It provides a simple and effective solution for s...