Skip to content

Latest commit

 

History

History
55 lines (46 loc) · 4.52 KB

README.md

File metadata and controls

55 lines (46 loc) · 4.52 KB

PHP with Apache container layout

Container | Distribution name | PHP Version
------------------------------------- | ----------------------------------------- webdevops/php-apache:ubuntu-12.04 | precise | PHP 5.3 webdevops/php-apache:ubuntu-14.04 | trusty (LTS) | PHP 5.5 webdevops/php-apache:ubuntu-15.04 | vivid | PHP 5.6 webdevops/php-apache:ubuntu-15.10 | wily | PHP 5.6 webdevops/php-apache:debian-7 | wheezy | PHP 5.4 webdevops/php-apache:debian-8 | jessie | PHP 5.6 webdevops/php-apache:debian-8-php7 | jessie with dotdeb | PHP 7.x (via dotdeb) webdevops/php-apache: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 Nginx
WEB_DOCUMENT_INDEX Document index (eg. index.php) for Nginx
WEB_ALIAS_DOMAIN Alias domains (eg. *.vm) for Nginx

Container info

Image Info
webdevops/php-apache:latest
webdevops/php-apache:ubuntu-14.04
webdevops/php-apache:ubuntu-15.04
webdevops/php-apache:ubuntu-15.10
webdevops/php-apache:centos-7
webdevops/php-apache:debian-8-php7
webdevops/php-apache:debian-8
webdevops/php-apache:debian-7