lnmpa-php-5.2 is a PHP-FPM Server boxed in a Docker image built by Tommy Lau.
This image is a php web development environment cooked from scratch with PHP version 5.2.17. Though PHP 5.2 is obsoleted, but a lot of PHP applications are still PHP 5.2 only, such like ECShop and etc. So I cooked this image with the following features.
Fixed:
Enabled:
Other:
TODO:
Get the docker image by running the following commands:
docker pull liukaitj/php52
Start an instance:
docker run --name php -v /path/to/web:/var/www/html -d liukaitj/php52
This will start an instance, and you are ready to go.
To use this image linking with MySQL, you have to have a running MySQL instance, more information about MySQL docker image, please refer to tommylau/mysql. Suppose you have a MySQL instance named mysql5.6_server, we can link it in our php instance with the name mysql like this:
docker run --name php -v /path/to/web:/var/www/html --link mysql5.6_server:mysql -d liukaitj/php52
Then in the instance, you can use the hostname mysql to connect to the database.
Content type
Image
Digest
sha256:518c8b6c6…
Size
120.9 MB
Last updated
about 11 years ago
docker pull liukaitj/php52