From 38a2263170382d245b44ec9c625538cb55fb9600 Mon Sep 17 00:00:00 2001 From: Aaron Lewis Date: Tue, 24 Jul 2018 19:26:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=AE=89=E8=A3=85=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E9=87=8C=E7=9A=84=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rasp-install/php/install.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/rasp-install/php/install.php b/rasp-install/php/install.php index e0e7626de..88a2e71ff 100644 --- a/rasp-install/php/install.php +++ b/rasp-install/php/install.php @@ -86,7 +86,7 @@ function get_ini_content($lib_filename, $root_dir) ;当SQL查询结果行数大于或等于该值,则认为是慢查询 ;openrasp.slowquery_min_rows=500 - + ;报警是否开启 syslog ;openrasp.syslog_alarm_enable=Off @@ -126,7 +126,7 @@ function get_ini_content($lib_filename, $root_dir) php install.php [options] Options: - -d Specify OpenRASP installation folder, which is essential + -d Specify OpenRASP installation folder (required) --ignore-ini Do not update PHP ini entries @@ -150,14 +150,14 @@ function get_ini_content($lib_filename, $root_dir) } //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 检察依赖扩展 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> -major_tips('Check whether dependent PHP extensions are installed'); +major_tips('Check whether required PHP extensions are installed'); $dep_exts = array('json', 'PDO'); if (!check_dep_exts_installed($dep_exts)) { - log_tips(ERROR, implode(" ",$dep_exts) . " must be installed correctly."); + log_tips(ERROR, "OpenRASP depends on the following PHP extension: " . implode(" ", $dep_exts) . " . Make sure they are installed on your system."); } //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 拷贝动态库 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> -major_tips('Installing OpenRASP PHP Extension'); +major_tips('Installing OpenRASP PHP extension'); if (!file_exists($extension_dir)) { log_tips(ERROR, "Extension directory '$extension_dir' does not exist"); } @@ -191,13 +191,13 @@ function get_ini_content($lib_filename, $root_dir) $ini_scanned_path = $ini_scanned_root . "mods-available"; foreach ($supported_sapi as $key => $value) { if (file_exists($ini_scanned_root.$value) && is_dir($ini_scanned_root.$value)) { - $ini_symbol_links[$value] = $ini_scanned_root.$value.DIRECTORY_SEPARATOR . 'conf.d/99-openrasp.ini'; + $ini_symbol_links[$value] = $ini_scanned_root . $value . DIRECTORY_SEPARATOR . 'conf.d/99-openrasp.ini'; } } } } if (!is_writable($ini_scanned_path)) { - log_tips(ERROR, $ini_scanned_path . ' is not writable, please make sure you have write permissions!'); + log_tips(ERROR, $ini_scanned_path . ' is not writable, make sure you have write permissions.'); } $ini_src = $ini_scanned_path.DIRECTORY_SEPARATOR.$ini_scanned_file; @@ -234,7 +234,7 @@ function get_ini_content($lib_filename, $root_dir) } foreach($ini_files_2b_updated as $key=>$ini_file) { if (!is_writable($ini_file)) { - log_tips(ERROR, $ini_file . ' is not writable, please make sure you have write permissions!'); + log_tips(ERROR, $ini_file . ' is not writable, make sure you have write permissions'); } if (!copy($ini_file, $ini_file.'.bak')) { log_tips(ERROR, "Unable to backup old ini file: '$ini_file'");