Public | Automated Build

Last pushed: 3 months ago
Short Description
An image with Apache + mod_php preconfigured, based on `carcel/php`
Full Description

[DEPRECATED] This image has been moved to https://hub.docker.com/r/akeneo/apache-php/


Apache and PHP on Docker

This is a basic Docker environment for PHP development, based on carcel/php.

It is not intended to use directly as it stands, but rather to extend it and create custom development environments.

It provides a pre-configured Apache (2.4) + mod_php (PHP 7.1) web server, based on Debian 8 (Jessie).
Apache is configured to run with the docker user. It is then preferred to place your PHP application in /home/docker
and modify the default VHOST to access it.

The environment come with some PHP extensions: apcu, mcrypt, intl, mysql, curl, gd, mongo, soap, xml, zip, and xdebug
(this last one comes deactivated, run phpenmod xdebug and restart Apache to enable it).

How to use it?

From Docker hub

You can directly pull this image from Docker hub by running:

$ docker run --name apache-php -p 8080:80 -d carcel/apache-php

Access the URL localhost:8080 with your web browser to check that the container works.

From GitHub

Clone the repository, go inside the created folder, and build the docker image:

$ docker build -t "apache-php" .

Then you can run a container like this:

$ docker run --name apache-php -p 8080:80 -d apache-php

License

This repository is under the MIT license. See the complete license in the LICENSE file.

Docker Pull Command
Owner
carcel
Source Repository

Comments (0)