PMCORE-2987

This commit is contained in:
Andrea Adamczyk
2021-04-19 15:18:40 -04:00
parent 02aaf15763
commit 6d04e0b438
3 changed files with 10 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@@ -22352,8 +22352,8 @@ msgstr "Open SSL is optional"
# TRANSLATION
# LABEL/ID_PROCESSMAKER_REQUIREMENTS_PHP
#: LABEL/ID_PROCESSMAKER_REQUIREMENTS_PHP
msgid "PHP recommended version 7.3, we maintain compatibility starting with PHP 7.1"
msgstr "PHP recommended version 7.3, we maintain compatibility starting with PHP 7.1"
msgid "PHP recommended version 7.4, we maintain compatibility starting with PHP 7.3"
msgstr "PHP recommended version 7.4, we maintain compatibility starting with PHP 7.3"
# TRANSLATION
# LABEL/ID_PROCESSMAKER_REQUIREMENTS_SOAP

View File

@@ -13,8 +13,8 @@ include PATH_LANGUAGECONT . "translation." . SYS_LANG;
class InstallerModule extends Controller
{
const MYSQL_VERSION_MAXIMUM_SUPPORTED = "5.7";
const PHP_VERSION_MINIMUM_SUPPORTED = "7.1";
const PHP_VERSION_NOT_SUPPORTED = "7.4";
const PHP_VERSION_MINIMUM_SUPPORTED = "7.3";
const PHP_VERSION_NOT_SUPPORTED = "8";
public $path_config;
public $path_languages;
public $path_plugins;
@@ -618,7 +618,11 @@ class InstallerModule extends Controller
try {
$host = $host === 'localhost' || $host === '127.0.0.1' ? 'localhost' : '%';
$query = "GRANT ALL PRIVILEGES ON `$psDatabase`.* TO $psUser@'$host' IDENTIFIED BY '$psPassword' WITH GRANT OPTION";
$query = "CREATE USER '$psUser'@'$host' IDENTIFIED WITH mysql_native_password BY '$psPassword'";
DB::connection(self::CONNECTION_INSTALL)
->statement($query);
$query = "GRANT ALL PRIVILEGES ON `$psDatabase`.* TO '$psUser'@'$host' WITH GRANT OPTION";
DB::connection(self::CONNECTION_INSTALL)
->statement($query);