Skip to content

Commit

Permalink
A-z variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydrogers authored Mar 5, 2025
1 parent cc83899 commit 6cfee27
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ We like to customize our images on a per app basis using environment variables.
`PHP_FPM_PROCESS_CONTROL_TIMEOUT`<br />*Default: "10s"*|Set the timeout for the process control commands. (<a target="_blank" href="https://www.php.net/manual/en/install.fpm.configuration.php">Official docs</a>)|fpm*
`PHP_MAX_EXECUTION_TIME`<br />*Default: "99"*|Set the maximum time in seconds a script is allowed to run before it is terminated by the parser. (<a target="_blank" href="https://www.php.net/manual/en/info.configuration.php#ini.max-execution-time">Official docs</a>)|all
`PHP_MAX_INPUT_TIME`<br />*Default: "-1"*|This sets the maximum time in seconds a script is allowed to parse input data, like POST and GET. Timing begins at the moment PHP is invoked at the server and ends when execution begins. The default setting is -1, which means that max_execution_time is used instead. Set to 0 to allow unlimited time. This directive is hardcoded to -1 for the CLI SAPI by PHP. (<a target="_blank" href="https://php.net/max-input-time">Official docs</a>)|all
`PHP_MEMORY_LIMIT`<br />*Default: "256M"*|Set the maximum amount of memory in bytes that a script is allowed to allocate. (<a target="_blank" href="https://www.php.net/manual/en/ini.core.php#ini.memory-limit">Official docs</a>)|all
`PHP_MAX_INPUT_VARS`<br />*Default: "1000"*|Set the limits for number of input variables (e.g., POST, GET, or COOKIE variables) that PHP will process in a single request. (<a target="_blank" href="https://www.php.net/manual/en/info.configuration.php#ini.max-input-vars">Official docs</a>)|all
`PHP_MEMORY_LIMIT`<br />*Default: "256M"*|Set the maximum amount of memory in bytes that a script is allowed to allocate. (<a target="_blank" href="https://www.php.net/manual/en/ini.core.php#ini.memory-limit">Official docs</a>)|all
`PHP_OPCACHE_ENABLE`<br />*Default: "0" (to keep developers sane)*|Enable or disable OPcache. ⚠️ This will set **both values** for `opcache.enable` and `opcache.enable_cli`. (<a target="_blank" href="https://www.php.net/manual/en/opcache.configuration.php#ini.opcache.enable">Official docs</a>)|all
`PHP_OPCACHE_INTERNED_STRINGS_BUFFER`<br />*Default: "8"*|The amount of memory used to store interned strings, in megabytes. (<a target="_blank" href="https://www.php.net/manual/en/opcache.configuration.php#ini.opcache.interned-strings-buffer">Official docs</a>)|all
`PHP_OPCACHE_MAX_ACCELERATED_FILES`<br />*Default: "10000"*|The maximum number of keys (scripts) in the OPcache hash table. (<a target="_blank" href="https://www.php.net/manual/en/opcache.configuration.php#ini.opcache.max-accelerated-files">Official docs</a>)|all
Expand Down
2 changes: 1 addition & 1 deletion src/variations/cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ ENV APP_BASE_DIR=/var/www/html \
PHP_ERROR_REPORTING="22527" \
PHP_MAX_EXECUTION_TIME="99" \
PHP_MAX_INPUT_TIME="-1" \
PHP_MEMORY_LIMIT="256M" \
PHP_MAX_INPUT_VARS="1000" \
PHP_MEMORY_LIMIT="256M" \
PHP_OPCACHE_ENABLE="0" \
PHP_OPCACHE_INTERNED_STRINGS_BUFFER="8" \
PHP_OPCACHE_MAX_ACCELERATED_FILES="10000" \
Expand Down
2 changes: 1 addition & 1 deletion src/variations/fpm-apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ ENV APACHE_DOCUMENT_ROOT=/var/www/html/public \
PHP_FPM_PROCESS_CONTROL_TIMEOUT="10s" \
PHP_MAX_EXECUTION_TIME="99" \
PHP_MAX_INPUT_TIME="-1" \
PHP_MEMORY_LIMIT="256M" \
PHP_MAX_INPUT_VARS="1000" \
PHP_MEMORY_LIMIT="256M" \
PHP_OPCACHE_ENABLE="0" \
PHP_OPCACHE_INTERNED_STRINGS_BUFFER="8" \
PHP_OPCACHE_MAX_ACCELERATED_FILES="10000" \
Expand Down
2 changes: 1 addition & 1 deletion src/variations/fpm-nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ ENV APP_BASE_DIR=/var/www/html \
PHP_FPM_PROCESS_CONTROL_TIMEOUT="10s" \
PHP_MAX_EXECUTION_TIME="99" \
PHP_MAX_INPUT_TIME="-1" \
PHP_MEMORY_LIMIT="256M" \
PHP_MAX_INPUT_VARS="1000" \
PHP_MEMORY_LIMIT="256M" \
PHP_OPCACHE_ENABLE="0" \
PHP_OPCACHE_INTERNED_STRINGS_BUFFER="8" \
PHP_OPCACHE_MAX_ACCELERATED_FILES="10000" \
Expand Down
2 changes: 1 addition & 1 deletion src/variations/fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ ENV APP_BASE_DIR=/var/www/html \
PHP_FPM_PROCESS_CONTROL_TIMEOUT="10s" \
PHP_MAX_EXECUTION_TIME="99" \
PHP_MAX_INPUT_TIME="-1" \
PHP_MEMORY_LIMIT="256M" \
PHP_MAX_INPUT_VARS="1000" \
PHP_MEMORY_LIMIT="256M" \
PHP_OPCACHE_ENABLE="0" \
PHP_OPCACHE_INTERNED_STRINGS_BUFFER="8" \
PHP_OPCACHE_MAX_ACCELERATED_FILES="10000" \
Expand Down
2 changes: 1 addition & 1 deletion src/variations/unit/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ ENV APP_BASE_DIR=/var/www/html \
PHP_ERROR_REPORTING="22527" \
PHP_MAX_EXECUTION_TIME="99" \
PHP_MAX_INPUT_TIME="-1" \
PHP_MEMORY_LIMIT="256M" \
PHP_MAX_INPUT_VARS="1000" \
PHP_MEMORY_LIMIT="256M" \
PHP_OPCACHE_ENABLE="0" \
PHP_OPCACHE_INTERNED_STRINGS_BUFFER="8" \
PHP_OPCACHE_MAX_ACCELERATED_FILES="10000" \
Expand Down

0 comments on commit 6cfee27

Please sign in to comment.