File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,11 @@ sed -i "s/9999/99$v_tpl/g" /etc/php/$version/fpm/pool.d/dummy.conf
135135cp -f $HESTIA_INSTALL_DIR /php-fpm/php-fpm.conf /etc/php/$version /fpm/
136136sed -i " s/fpm_v/$version /g" /etc/php/$version /fpm/php-fpm.conf
137137
138+ # Increase max upload and max post size
139+ sed -i " s/upload_max_filesize = 2M/upload_max_filesize = 100M/g" /etc/php/$version /fpm/php.ini
140+ sed -i " s/post_max_size = 8M/post_max_size = 100M/g" /etc/php/$version /fpm/php.ini
141+ sed -i " s/max_execution_time = 30/max_execution_time = 60/g" /etc/php/$version /fpm/php.ini
142+
138143# Install backend template
139144cp -f $HESTIA_INSTALL_DIR /php-fpm/multiphp.tpl \
140145 $HESTIA /data/templates/web/php-fpm/PHP-${version/ \. / _} .tpl
Original file line number Diff line number Diff line change 2929if [ -f " /etc/roundcube/config.inc.php" ]; then
3030 sed -i " s/?>//" /etc/roundcube/config.inc.php
3131 sed -i " s/?>//" /etc/roundcube/mimetypes.php
32- fi
32+ fi
33+
34+ for version in $( $HESTIA /bin/v-list-sys-php plain) ; do
35+ # Increase max upload and max post size
36+ sed -i " s/upload_max_filesize = 2M/upload_max_filesize = 100M/g" /etc/php/$version /fpm/php.ini
37+ sed -i " s/post_max_size = 8M/post_max_size = 100M/g" /etc/php/$version /fpm/php.ini
38+ sed -i " s/max_execution_time = 30$/max_execution_time = 60/g" /etc/php/$version /fpm/php.ini
39+ done
You can’t perform that action at this time.
0 commit comments