ubuntu12.04 + Apache + PHP5.3 舊網站使用的舊環境
1.1K
A Docker image based on Ubuntu 12.04, serving the old PHP 5.3 running as Apache Module. Useful for Web developers in need for an old PHP version. In addition, the error_reporting setting in php.ini is configurable per container via environment variable.
error_reporting$ docker run -d -P imagine10255/ubuntu12-apache-php53
With all the options:
$ docker run -d -p 8080:80 \
-v /home/website/{your-site}:/var/www \
imagine10255/ubuntu12-apache-php53
-v [local path]:/var/www maps the container's webroot to a local path-p [local port]:80 maps a local port to the container's HTTP port 80-e PHP_ERROR_REPORTING=[php error_reporting settings] sets the value of error_reporting in the php.ini files.Apache is configured to log both access and error log to STDOUT. So you can simply use docker logs to get the log output:
docker logs -f container-id
Docker File 參考來源 bylexus/apache-php53
Content type
Image
Digest
Size
107.5 MB
Last updated
about 10 years ago
docker pull imagine10255/ubuntu12-apache-php53