Docker image for running Apache 2.x with PHP 5.x
1M+
Apache 2.x + mod_php 5.x
Based on debian:jessie.
Just run make.
/var/lib/php5/sessions (tmpfs is recommended)/tmp/apache2-coredumps (optional)/var/log/apache2/var/wwwCREATE_USER_UIDCREATE_USER_GIDCREATE_SYMLINKS (for example: "/var/www/dir1>/var/dir1,/var/www/dir2>/var/dir2")APACHE_COREDUMPAPACHE_RUN_USERAPACHE_RUN_GROUPAPACHE_MODSAPACHE_DOCUMENT_ROOT (/var/www/html by default)APACHE_SERVER_NAME (hostname by default)APACHE_ALLOW_OVERRIDE ('None' by default)APACHE_ALLOW_ENCODED_SLASHES ('Off' by default)APACHE_MAX_REQUEST_WORKERS (32 by default)APACHE_MAX_CONNECTIONS_PER_CHILD (1024 by default)APACHE_LOGLEVEL ('error' by default)APACHE_ERRORLOG - a path for error log.APACHE_CUSTOMLOG - a path for custom (access) log.PHP_MODSPHP_TIMEZONE ('UTC' by default)PHP_SMTP - MTA SMTP IP-address/hostnamePHP_SMTP_FROM - default From header for mail (example:
'[email protected]')PHP_MBSTRING_FUNC_OVERLOAD - mbstring.func_overload (0 by default).PHP_ALWAYS_POPULATE_RAW_POST_DATA - always_populate_raw_post_data (0 by default).PHP_MEMORY_LIMIT - memory_limit (1GB by default).PHP_SESSION_GC_MAXLIFETIME - session.gc_maxlifetime (86400 by default).PHP_NEWRELIC_LICENSE_KEY - Newrelic agent license key (empty and disabled by default).PHP_NEWRELIC_APPNAME - Newrelic application name (empty by default).PHP_NEWRELIC_FRAMEWORK - Newrelic framework name ('no_framework' by default).PHP_NEWRELIC_PORT - newrelic-daemon socket path or port number ('/run/newrelic/newrelic.sock' by default).Following variables must be defined to run the container:
PHP_SMTPPHP_SMTP_FROMSet following environment variables:
APACHE_CUSTOMLOG='"|/bin/cat" combined'APACHE_ERRORLOG='"|/bin/cat"'Content type
Image
Digest
Size
284.6 MB
Last updated
almost 5 years ago
docker pull antage/apache2-php5