xxxxxxxxxx
declare -A replacers
replacers[upload_max_filesize]=150M
replacers[post_max_size]=150M
replacers[max_input_vars]=5000
replacers[memory_limit]=1024M
replacers[max_execution_time]=360
replacers[max_input_time]=360
for i in "${!replacers[@]}"
do
echo "Setting value of $i to ${replacers[$i]}"
sed -i "s/^\($i\).*/\1=${replacers[$i]}/" /etc/php/7.1/fpm/php.ini
done
service php7.1-fpm restart
Design © 2025. ForgeRecipes loves you.
Site maintained by Vince Mitchell.
Inspired by original by David Hemphill, Tanner Hearne, & Matt Stauffer.