PHP (Apache)

PHP (Apache)

Official Preset8.2-apache

Category: Developer Tools & Utilities

#php#apache#webserver#runtime#backend#lamp

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

1

Hosting custom PHP microservices, APIs, and administrative scripts

2

Running legacy web applications and bespoke client projects

3

Fast prototyping of server-rendered web applications

4

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

Docker Image

php:8.2-apache

Default Version

8.2-apache

SSL & Domain Routing

Automated Let's Encrypt (Caddy / Traefik)

Persistent Volumes

Managed host volume mounts

How to Deploy PHP (Apache) with tug.sh

1

Connect your Linux server

Run the 1-line tug.sh agent install command on any Ubuntu, Debian, or Rocky Linux VPS.

2

Select PHP (Apache) from the Marketplace

Pick your domain name, configure custom environment variables if needed, and choose your persistent storage folder.

3

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.