fix script to change php vars
This commit is contained in:
@@ -196,6 +196,7 @@ RUN echo "cgi.fix_pathinfo=0" > ${php_vars} &&\
|
|||||||
echo "upload_max_filesize = 100M" >> ${php_vars} &&\
|
echo "upload_max_filesize = 100M" >> ${php_vars} &&\
|
||||||
echo "post_max_size = 100M" >> ${php_vars} &&\
|
echo "post_max_size = 100M" >> ${php_vars} &&\
|
||||||
echo "variables_order = \"EGPCS\"" >> ${php_vars} && \
|
echo "variables_order = \"EGPCS\"" >> ${php_vars} && \
|
||||||
|
echo "memory_limit = 128M" >> ${php_vars} && \
|
||||||
sed -i \
|
sed -i \
|
||||||
-e "s/;catch_workers_output\s*=\s*yes/catch_workers_output = yes/g" \
|
-e "s/;catch_workers_output\s*=\s*yes/catch_workers_output = yes/g" \
|
||||||
-e "s/pm.max_children = 5/pm.max_children = 4/g" \
|
-e "s/pm.max_children = 5/pm.max_children = 4/g" \
|
||||||
|
|||||||
@@ -81,17 +81,17 @@ fi
|
|||||||
|
|
||||||
# Increase the memory_limit
|
# Increase the memory_limit
|
||||||
if [ ! -z "$PHP_MEM_LIMIT" ]; then
|
if [ ! -z "$PHP_MEM_LIMIT" ]; then
|
||||||
sed -i "s/memory_limit = 128M/memory_limit = ${PHP_MEM_LIMIT}M/g" /usr/local/etc/php-fpm.conf
|
sed -i "s/memory_limit = 128M/memory_limit = ${PHP_MEM_LIMIT}M/g" /usr/local/etc/php/conf.d/docker-vars.ini
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Increase the post_max_size
|
# Increase the post_max_size
|
||||||
if [ ! -z "$PHP_POST_MAX_SIZE" ]; then
|
if [ ! -z "$PHP_POST_MAX_SIZE" ]; then
|
||||||
sed -i "s/post_max_size = 100M/post_max_size = ${PHP_POST_MAX_SIZE}M/g" /usr/local/etc/php-fpm.conf
|
sed -i "s/post_max_size = 100M/post_max_size = ${PHP_POST_MAX_SIZE}M/g" /usr/local/etc/php/conf.d/docker-vars.ini
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Increase the upload_max_filesize
|
# Increase the upload_max_filesize
|
||||||
if [ ! -z "$PHP_UPLOAD_MAX_FILESIZE" ]; then
|
if [ ! -z "$PHP_UPLOAD_MAX_FILESIZE" ]; then
|
||||||
sed -i "s/upload_max_filesize = 100M/upload_max_filesize= ${PHP_UPLOAD_MAX_FILESIZE}M/g" /usr/local/etc/php-fpm.conf
|
sed -i "s/upload_max_filesize = 100M/upload_max_filesize= ${PHP_UPLOAD_MAX_FILESIZE}M/g" /usr/local/etc/php/conf.d/docker-vars.ini
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Always chown webroot for better mounting
|
# Always chown webroot for better mounting
|
||||||
|
|||||||
Reference in New Issue
Block a user