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 tommylau/php-5.2
Start an instance:
docker run --name php -v /path/to/web:/var/www/html -d tommylau/php-5.2
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 tommylau/php-5.2
Then in the instance, you can use the hostname mysql to connect to the database.
Content type
Image
Digest
sha256:85962d55a…
Size
123.8 MB
Last updated
over 8 years ago
docker pull tommylau/php-5.2