Commit bb1bff37 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add PHP_max_file_uploads support

parent f33a24b2
......@@ -46,7 +46,7 @@ $VEIP $AUSER.site.azbyka.ru $AUSER
# Azbyka's hosts
192.168.3.188 memcached.azbyka
192.168.3.185 sphinx.azbyka
136.243.107.44 sphinx.azbyka
192.168.3.186 redis.azbyka
192.168.3.191 mysql.azbyka
192.168.3.191 mysql
......@@ -117,8 +117,10 @@ tune_php7()
subst "s|^post_max_size = .*|post_max_size = $PHP_post_max_size|" $aphp
subst "s|^upload_max_filesize = .*|upload_max_filesize = $PHP_post_max_size|" $aphp
fi
PHP_max_file_uploads=200
subst "s|^max_file_uploads = .*|max_file_uploads = $PHP_max_file_uploads|" $aphp
[ -n "$PHP_max_file_uploads" ] && subst "s|^max_file_uploads = .*|max_file_uploads = $PHP_max_file_uploads|" $aphp
if [ -n "$PHP_max_input_vars" ] ; then
subst "s|^[; ]*max_input_vars = .*|max_input_vars = $PHP_max_input_vars|" $aphp
fi
}
tune_apache2()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment