khanamaan/php56-all-in-one

By khanamaan

Updated 5 months ago

All-in-one PHP 5.6 Docker image with Apache, MySQL, and Memcached for legacy apps

Image
Languages & frameworks
API management
0

782

khanamaan/php56-all-in-one repository overview

PHP 5.6 All-In-One (Apache + MySQL + Memcached)

A single-container Docker image that bundles PHP 5.6, Apache, MySQL, and Memcached into a unified environment.

This image is designed for running legacy PHP applications that depend on older stacks, without requiring complex multi-container setups or installing outdated software on your host system.


What This Image Provides

  • PHP 5.6 with common extensions (mysqli, PDO, mbstring, soap, gettext)
  • Apache web server
  • MySQL server (with persistent storage support)
  • Memcached with PHP extension
  • Supervisor to manage all services in one container

Use Cases

  • Running legacy PHP 5.6 applications
  • Maintaining older projects that depend on deprecated stacks
  • Quick setup for debugging or testing old codebases
  • Migration workflows where upgrading PHP is not immediately possible

Quick Start

Pull the image
docker pull khanamaan/php56-all-in-one:latest
Run the container
docker run -d \
  --name php56-app \
  -p 8080:80 \
  -v $(pwd)/app:/var/www/html \
  -v php56-mysql-data:/var/lib/mysql \
  --privileged \
  khanamaan/php56-all-in-one:latest

Open in browser:

http://localhost:8080

Docker Compose Example

services:
  php56-all-in-one:
    image: khanamaan/php56-all-in-one:latest
    container_name: php56-all-in-one
    ports:
      - "8080:80"
    volumes:
      - ./app:/var/www/html
      - mysql-data:/var/lib/mysql
    privileged: true

volumes:
  mysql-data:

Start:

docker-compose up -d

Stop:

docker-compose down

Default MySQL Credentials

  • Host: 127.0.0.1
  • Database: app_database
  • Username: app_user
  • Password: app_password

Notes

  • All services run inside a single container for simplicity.
  • MySQL data is persisted using Docker volumes.
  • You can mount your application code using the /var/www/html directory.
  • For customization, you can build the image from source using the GitHub repository.

Tag summary

Content type

Image

Digest

sha256:e33eccc9c

Size

241.6 MB

Last updated

5 months ago

docker pull khanamaan/php56-all-in-one