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.inilocated under/usr/local/etc/php
Images are published to nil0x42/php-4.3.0 with the following tags:
4.3.0
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.0An example docker-compose.yml is provided in examples/docker-compose.yml.
Use the helper script to build the image locally:
./build.shThe 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.
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.
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.