Skip to content

nil0x42/docker-php-4.3.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP 4.3.0 Apache Image

This repository builds a Docker image with PHP 4.3.0 running via CGI under Apache HTTP Server 2.0. It mirrors the conventions of the official php:<version>-apache images:

  • Exposes port 80
  • Document root and working directory at /var/www/html
  • php.ini located under /usr/local/etc/php

Tags

Images are published to nil0x42/php-4.3.0 with the following tags:

  • 4.3.0

Usage

Run the container and mount your application code:

docker run -d --name php43 \
  -p 127.0.0.1:22430:80 \
  -v "$PWD/app:/var/www/html" \
  nil0x42/php-4.3.0:4.3.0

An example docker-compose.yml is provided in examples/docker-compose.yml.

Building

Use the helper script to build the image locally:

./build.sh

The script downloads the PHP source tarball, builds the image for the linux/386 platform, and tags the result. Uncomment the push commands in the script to publish to Docker Hub.

php.ini

A default php.ini is installed at /usr/local/etc/php/php.ini. Adjust PHPRC if you need to point PHP to a different configuration directory.

Security Notice

PHP 4.3.0 is end-of-life and receives no security updates. Do not expose this container to untrusted networks. It is intended for historical or archival purposes only.

About

Docker image with PHP 4.3.0 running via CGI under Apache HTTP Server 2.0

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published