From 1d62a5f6e6bca48f67714b181cf76b618be218da Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Sat, 27 Jul 2024 15:20:25 +0200 Subject: [PATCH] added memory limit (same as in debug view) --- .../includes/install_config/install_config.php | 1 + install/index.php | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/install/includes/install_config/install_config.php b/install/includes/install_config/install_config.php index 47eeca707..2a5b772ea 100644 --- a/install/includes/install_config/install_config.php +++ b/install/includes/install_config/install_config.php @@ -22,6 +22,7 @@ $min_php_version = '7.4.0'; // below this version is no install possible $min_php_version_warning = '8.0.0'; // below this version some features may not available (e.g. Cronmanager) $max_execution_time = 600; // Seconds $upload_max_filesize = 8; // Megabyte +$memory_limit = 256; // Megabyte $post_max_size = 8; // Megabyte $req_allow_url_fopen = '1'; // 1 = on diff --git a/install/index.php b/install/index.php index 7bb5ddc61..cffa4c837 100644 --- a/install/index.php +++ b/install/index.php @@ -192,6 +192,24 @@ if (!file_exists('.lock')) { + + memory_limit + ' . $memory_limit . 'M'; ?> + + = ($memory_limit * 1024 * 1024)) { // compare with given value in bytes + ?> + + + + + + allow_url_fopen On