Fix: increase PHP and Nginx upload limit to 512M for backup restore and enhance upload error reporting
This commit is contained in:
1 parent
a09f13de71
commit
c54a8e0c66
5 files changed
+59
-3
No files matched your search
@@ -99,6 +99,28 @@ EOF_OVERRIDE
|
||||
done
|
||||
systemctl daemon-reload
|
||||
|
||||
echo "-> Configuration des limites d'upload PHP (512 Mo)..."
|
||||
for php_dir in /etc/php/*; do
|
||||
if [ -d "$php_dir/fpm/conf.d" ]; then
|
||||
cat << 'EOF_PHP' > "$php_dir/fpm/conf.d/99-nexus.ini"
|
||||
upload_max_filesize = 512M
|
||||
post_max_size = 512M
|
||||
memory_limit = 512M
|
||||
max_execution_time = 300
|
||||
max_input_time = 300
|
||||
EOF_PHP
|
||||
fi
|
||||
if [ -d "$php_dir/cli/conf.d" ]; then
|
||||
cat << 'EOF_PHP' > "$php_dir/cli/conf.d/99-nexus.ini"
|
||||
upload_max_filesize = 512M
|
||||
post_max_size = 512M
|
||||
memory_limit = 512M
|
||||
max_execution_time = 300
|
||||
max_input_time = 300
|
||||
EOF_PHP
|
||||
fi
|
||||
done
|
||||
|
||||
echo "-> Génération des configurations Asterisk..."
|
||||
php -r '
|
||||
require_once "/var/www/nexus-pbx/src/Database.php";
|
||||
|
||||
Reference in new issue
Block a user