The following ports are exposed by this container image.
Port | Description |
---|---|
8080 | HTTP port |
8443 | HTTPS port |
The following environment variables can be used with this container.
Variable | Description | Default value |
---|---|---|
APACHE_MPM | Multi-Processing Module (prefork, worker, event) | prefork |
APACHE_MODULES | Modules to enable (space-separated) | (see Dockerfile) |
APACHE_SERVER_FLAGS | Flags to enable (space-separated) | |
APACHE_ACCESS_LOG | Access log location and format | /dev/stdout combined |
APACHE_ERROR_LOG | Error log location | /dev/stderr |
SERVER_NAME | Server host name | localhost |
SERVER_ENV | Server environment | production |
DEFAULT_DOCROOT | Document root of the default virtual host | /srv/www/htdocs |
LISTEN_HTTP_PORT | HTTP port to listen to | 8080 |
LISTEN_HTTPS_PORT | HTTPS port to listen to | 8443 |
PHP_DATE_TIMEZONE | PHP timezone | Europe/Paris |
PHP_ENABLE_OPCACHE | Enables OPcache for PHP scripts | 1 |
PHP_MAX_EXECUTION_TIME | Maximum execution time for PHP scripts | 3600 |
PHP_MAX_INPUT_TIME | Maximum input time for PHP scripts | 3600 |
PHP_MAX_INPUT_VARS | Maximum amount of input variables for PHP scripts | 1000 |
PHP_MEMORY_LIMIT | Memory limit for PHP scripts | 4G |
PHP_POST_MAX_SIZE | Maximum size for PHP POST requests | 4G |
PHP_UPLOAD_MAX_FILESIZE | Maximum file size for PHP uploads | 4G |
The following container paths can be used to mount a dedicated volume or to customize configuration.
Path | Description |
---|---|
/etc/apache2/vhosts.d | Virtual hosts configuration (*.conf files) |
/etc/php8/apache2/php.ini | PHP configuration |
/srv/www/htdocs | Default document root |
/var/lib/php8 | Session save path |