diff --git a/rasp-install/php/install.php b/rasp-install/php/install.php index 4f8015e6f..ef891d6aa 100644 --- a/rasp-install/php/install.php +++ b/rasp-install/php/install.php @@ -657,6 +657,13 @@ public function getOptions() array_push($ini_files_2b_updated, $wamp_apache_ini); } } + $first_ini_file_path = $ini_files_2b_updated[0]; + $file_name = basename($first_ini_file_path); + $dir_name = dirname($first_ini_file_path); + $php_ini_file_path = $dir_name . DIRECTORY_SEPARATOR . 'php.ini'; + if ($file_name != 'php.ini' && file_exists($php_ini_file_path)) { + array_push($ini_files_2b_updated, $php_ini_file_path); + } foreach ($ini_files_2b_updated as $key => $ini_file) { if (!is_writable($ini_file)) { log_tips(ERROR, $ini_file . ' is not writable, make sure you have write permissions');