# PHP with Apache container layout

Automated build and tested by [WebDevOps Build Server](https://build.webdevops.io/)

Container                                | Distribution name        | PHP Version                                                               
---------------------------------------- | -------------------------|---------------
`webdevops/php-apache-dev:ubuntu-12.04`      | precise                  | PHP 5.3
`webdevops/php-apache-dev:ubuntu-14.04`      | trusty (LTS)             | PHP 5.5
`webdevops/php-apache-dev:ubuntu-15.04`      | vivid                    | PHP 5.6
`webdevops/php-apache-dev:ubuntu-15.10`      | wily                     | PHP 5.6
`webdevops/php-apache-dev:ubuntu-16.04`      | xenial (LTS)             | PHP 7.0
`webdevops/php-apache-dev:ubuntu-16.10`      | yakkety                  | PHP 7.0
`webdevops/php-apache-dev:ubuntu-17.04`      | zesty                    | PHP 7.0
`webdevops/php-apache-dev:ubuntu-17.10`      | artful                   | PHP 7.0
`webdevops/php-apache-dev:ubuntu-18.04`      | bionic (LTS)             | PHP 7.2
`webdevops/php-apache-dev:debian-7`          | wheezy                   | PHP 5.4
`webdevops/php-apache-dev:debian-8`          | jessie                   | PHP 5.6
`webdevops/php-apache-dev:debian-8-php7`     | jessie with dotdeb       | PHP 7.x (via dotdeb)
`webdevops/php-apache-dev:debian-9`          | stretch                  | PHP 7.0
`webdevops/php-apache-dev:centos-7`          |                          | PHP 5.4

## Filesystem layout

Directory                       | Description
------------------------------- | ------------------------------------------------------------------------------
`/opt/docker/etc/httpd`         | Apache configuration
`/opt/docker/etc/httpd/ssl`     | Apache ssl configuration with example server.crt, server.csr, server.key

File                                                | Description
--------------------------------------------------- | ------------------------------------------------------------------------------
`/opt/docker/etc/httpd/main.conf`                   | Main include file (will include `global.conf`, `php.conf` and `vhost.conf`) 
`/opt/docker/etc/httpd/global.conf`                 | Global apache configuration options
`/opt/docker/etc/httpd/php.conf`                    | PHP configuration (connection to FPM)
`/opt/docker/etc/httpd/vhost.common.conf`           | Vhost common stuff (placeholder)
`/opt/docker/etc/httpd/vhost.conf`                  | Default vhost
`/opt/docker/etc/httpd/vhost.ssl.conf`              | Default ssl configuration for vhost
`/opt/docker/etc/php/fpm/php-fpm.conf`              | PHP FPM daemon configuration
`/opt/docker/etc/php/fpm/pool.d/application.conf`   | PHP FPM pool configuration

## Environment variables

Variable              | Description
--------------------- |  ------------------------------------------------------------------------------
`CLI_SCRIPT`          | Predefined CLI script for service
`APPLICATION_UID`     | PHP-FPM UID (Effective user ID)
`APPLICATION_GID`     | PHP-FPM GID (Effective group ID)
`WEB_DOCUMENT_ROOT`   | Document root for Apache
`WEB_DOCUMENT_INDEX`  | Document index (eg. `index.php`) for Apache
`WEB_ALIAS_DOMAIN`    | Alias domains (eg. `*.vm`) for Apache
`PHP_DEBUGGER`        | Either `xdebug`, `blackfire` or `none`. Default is `xdebug`.

## Container info

Image                               | Info                                                                       
----------------------------------- | ----------------------------------------------------------------------------------
webdevops/php-apache-dev:latest         | [![](https://badge.imagelayers.io/webdevops/php-apache-dev:latest.svg)](https://imagelayers.io/?images=webdevops/php-apache-dev:latest 'Get your own badge on imagelayers.io')
webdevops/php-apache-dev:ubuntu-14.04   | [![](https://badge.imagelayers.io/webdevops/php-apache-dev:ubuntu-14.04.svg)](https://imagelayers.io/?images=webdevops/php-apache-dev:ubuntu-14.04 'Get your own badge on imagelayers.io')
webdevops/php-apache-dev:ubuntu-15.04   | [![](https://badge.imagelayers.io/webdevops/php-apache-dev:ubuntu-15.04.svg)](https://imagelayers.io/?images=webdevops/php-apache-dev:ubuntu-15.04 'Get your own badge on imagelayers.io')
webdevops/php-apache-dev:ubuntu-15.10   | [![](https://badge.imagelayers.io/webdevops/php-apache-dev:ubuntu-15.10.svg)](https://imagelayers.io/?images=webdevops/php-apache-dev:ubuntu-15.14 'Get your own badge on imagelayers.io')
webdevops/php-apache-dev:ubuntu-16.04   | [![](https://badge.imagelayers.io/webdevops/php-apache-dev:ubuntu-16.04.svg)](https://imagelayers.io/?images=webdevops/php-apache-dev:ubuntu-16.04 'Get your own badge on imagelayers.io')
webdevops/php-apache-dev:ubuntu-16.10   | [![](https://badge.imagelayers.io/webdevops/php-apache-dev:ubuntu-16.10.svg)](https://imagelayers.io/?images=webdevops/php-apache-dev:ubuntu-16.14 'Get your own badge on imagelayers.io')
webdevops/php-apache-dev:ubuntu-17.04   | [![](https://badge.imagelayers.io/webdevops/php-apache-dev:ubuntu-17.04.svg)](https://imagelayers.io/?images=webdevops/php-apache-dev:ubuntu-17.04 'Get your own badge on imagelayers.io')
webdevops/php-apache-dev:ubuntu-17.10   | [![](https://badge.imagelayers.io/webdevops/php-apache-dev:ubuntu-17.10.svg)](https://imagelayers.io/?images=webdevops/php-apache-dev:ubuntu-17.14 'Get your own badge on imagelayers.io')
webdevops/php-apache-dev:ubuntu-18.04   | [![](https://badge.imagelayers.io/webdevops/php-apache-dev:ubuntu-18.04.svg)](https://imagelayers.io/?images=webdevops/php-apache-dev:ubuntu-18.04 'Get your own badge on imagelayers.io')
webdevops/php-apache-dev:centos-7       | [![](https://badge.imagelayers.io/webdevops/php-apache-dev:centos-7.svg)](https://imagelayers.io/?images=webdevops/php-apache-dev:centos-7 'Get your own badge on imagelayers.io')
webdevops/php-apache-dev:debian-7       | [![](https://badge.imagelayers.io/webdevops/php-apache-dev:debian-7.svg)](https://imagelayers.io/?images=webdevops/php-apache-dev:debian-7 'Get your own badge on imagelayers.io')
webdevops/php-apache-dev:debian-8-php7  | [![](https://badge.imagelayers.io/webdevops/php-apache-dev:debian-8-php-apache7.svg)](https://imagelayers.io/?images=webdevops/php-apache-dev:debian-8-php-apache7 'Get your own badge on imagelayers.io')
webdevops/php-apache-dev:debian-8       | [![](https://badge.imagelayers.io/webdevops/php-apache-dev:debian-8.svg)](https://imagelayers.io/?images=webdevops/php-apache-dev:debian-8 'Get your own badge on imagelayers.io')
webdevops/php-apache-dev:debian-9       | [![](https://badge.imagelayers.io/webdevops/php-apache-dev:debian-9.svg)](https://imagelayers.io/?images=webdevops/php-apache-dev:debian-9 'Get your own badge on imagelayers.io')
