Skip to content

Commit bd51f19

Browse files
committed
Increase upload_max_filesize, max_post_size and max_execution_time
1 parent a2eb03a commit bd51f19

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/v-add-web-php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ sed -i "s/9999/99$v_tpl/g" /etc/php/$version/fpm/pool.d/dummy.conf
135135
cp -f $HESTIA_INSTALL_DIR/php-fpm/php-fpm.conf /etc/php/$version/fpm/
136136
sed -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
139144
cp -f $HESTIA_INSTALL_DIR/php-fpm/multiphp.tpl \
140145
$HESTIA/data/templates/web/php-fpm/PHP-${version/\./_}.tpl

0 commit comments

Comments
 (0)