This repository contains Docker configuration for a legacy web server environment based on CentOS 5, Apache 2.2, and PHP 5.1.6. This container is designed for running legacy applications that require these specific older versions.
- Base Image: CentOS 5
- Web Server: Apache 2.2
- PHP Version: 5.1.6
- Additional PHP modules:
- php-bcmath
- php-gd
- php-mbstring
- php-mysql
- php-odbc
- php-pdo
- Various PEAR modules
- Full list available in Dockerfile
- Cron: vixie-cron
The container includes:
- Custom Apache configuration with logging directed to stdout/stderr for container compatibility
- Default Apache document root at
/var/www/html - Port 80 exposed for HTTP traffic
- Apache running in foreground mode
Build the container:
docker build -t legacy-centos5-apache .Run the container:
docker run -d -p 80:80 legacy-centos5-apacheDockerfile- Container build instructionshttpd.conf- Custom Apache configurationvault.repo- CentOS 5 vault repository configuration
- This container uses the CentOS Vault repositories as CentOS 5 is end-of-life
- No security updates are available for these software versions
- PHP 5.1.6 lacks many modern security features and patches
- Apache 2.2 is no longer maintained
- Use only for legacy application compatibility testing or migration purposes
- No SSL/TLS support configured by default
- Limited to basic HTTP functionality
- No modern PHP features available
- Security vulnerabilities present in all components
This container is intended for:
- Legacy application migration testing
- Maintaining compatibility with very old code bases
- Development and testing environments only
DO NOT use this container for:
- Production environments
- Public-facing applications
- Processing sensitive data
- New development projects
If you find issues or have improvements, please submit a pull request or create an issue in the repository.