mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-21 19:16:09 +02:00
Implement essential php.ini configuration via ENV
Signed-off-by: Alexander Sosna <alexander.sosna@credativ.de>
This commit is contained in:
parent
3a3219b192
commit
b1ef8e2e97
1 changed files with 7 additions and 0 deletions
|
@ -43,6 +43,13 @@ file_env() {
|
||||||
unset "$fileVar"
|
unset "$fileVar"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Get essential PHP_INI configuration
|
||||||
|
file_env PHP_INI_MEMORY_LIMIT 512M
|
||||||
|
|
||||||
|
# Set essential PHP_INI configuration
|
||||||
|
# It is important to set essential variables like 'memory-limit' before the first start to premvent OOM during installation and statup.
|
||||||
|
echo "memory_limit=${PHP_INI_MEMORY_LIMIT}" > /usr/local/etc/php/conf.d/memory-limit.ini;
|
||||||
|
|
||||||
if expr "$1" : "apache" 1>/dev/null; then
|
if expr "$1" : "apache" 1>/dev/null; then
|
||||||
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
|
if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
|
||||||
a2disconf remoteip
|
a2disconf remoteip
|
||||||
|
|
Loading…
Add table
Reference in a new issue