From d3c0e94b03332f38a286252a93e7f5128f81732a Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sun, 24 Jan 2016 10:20:35 +0900 Subject: [PATCH] Update minimal server requirements --- README.md | 13 +++++++-- classes/db/DBMysql.class.php | 8 +++--- common/constants.php | 4 +-- modules/install/install.controller.php | 12 ++++---- modules/install/lang/lang.xml | 40 +++++++++++++++----------- 5 files changed, 45 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index c9d137e94..4da57f407 100644 --- a/README.md +++ b/README.md @@ -32,9 +32,16 @@ RhymiX는 개발자와 사용자가 서로의 권리와 책임을 존중하는 ### 설치 환경 -- PHP 5.3 이상 (PHP 5.5 이상 권장, PHP 7 지원) -- MYSQL 4.1 이상 (MySQL 5.0 이상 또는 MariaDB 권장) -- 필수 모듈: curl, gd, iconv _or_ mbstring, json, mcrypt _or_ openssl, xml +- PHP 5.3.3 이상 (PHP 5.5.9 이상 권장, PHP 7 지원) +- MySQL 4.1.13 이상 (MySQL 5.0.7 이상 또는 MariaDB 권장) +- CUBRID 또는 MS SQL을 DB로 사용할 수도 있으나, 권장하지는 않습니다. +- 필수 PHP 모듈 + - curl + - gd + - iconv 또는 mbstring + - json + - mcrypt 또는 openssl + - xml 및 simplexml - php.ini에서 session.auto_start = Off로 설정되어 있어야 합니다. - 설치 폴더 또는 files 폴더에 쓰기 권한이 주어져야 합니다. diff --git a/classes/db/DBMysql.class.php b/classes/db/DBMysql.class.php index 67d31c9bb..9c639e8b9 100644 --- a/classes/db/DBMysql.class.php +++ b/classes/db/DBMysql.class.php @@ -67,7 +67,7 @@ class DBMysql extends DB $result = @mysql_connect($connection["db_hostname"], $connection["db_userid"], $connection["db_password"]); if(!$result) { - exit('XE cannot connect to DB.'); + exit('Unable to connect to DB.'); } if(mysql_error()) @@ -76,10 +76,10 @@ class DBMysql extends DB return; } - // Error appears if the version is lower than 4.1 - if(version_compare(mysql_get_server_info($result), '4.1', '<')) + // Error appears if the version is lower than 4.1.13 + if(version_compare(mysql_get_server_info($result), '4.1.13', '<')) { - $this->setError(-1, 'XE cannot be installed under the version of mysql 4.1. Current mysql version is ' . mysql_get_server_info()); + $this->setError(-1, 'RhymiX requires MySQL 4.1.13 or later. Current MySQL version is ' . mysql_get_server_info()); return; } diff --git a/common/constants.php b/common/constants.php index 1a0e9ae23..683fa9489 100644 --- a/common/constants.php +++ b/common/constants.php @@ -119,8 +119,8 @@ define('__XE_VERSION_ALPHA__', false); define('__XE_VERSION_BETA__', false); define('__XE_VERSION_RC__', false); define('__XE_VERSION_STABLE__', true); -define('__XE_MIN_PHP_VERSION__', '5.3.0'); -define('__XE_RECOMMEND_PHP_VERSION__', '5.5.0'); +define('__XE_MIN_PHP_VERSION__', '5.3.3'); +define('__XE_RECOMMEND_PHP_VERSION__', '5.5.9'); define('__ZBXE__', true); define('__ZBXE_VERSION__', RX_VERSION); define('_XE_PATH_', RX_BASEDIR); diff --git a/modules/install/install.controller.php b/modules/install/install.controller.php index a24fcfaa5..771ce9dab 100644 --- a/modules/install/install.controller.php +++ b/modules/install/install.controller.php @@ -394,18 +394,18 @@ class installController extends install $checklist['json'] = false; } - // Check openssl - if(function_exists('openssl_encrypt')) + // Check mcrypt or openssl + if(function_exists('mcrypt_encrypt') || function_exists('openssl_encrypt')) { - $checklist['openssl'] = true; + $checklist['mcrypt'] = true; } else { - $checklist['openssl'] = false; + $checklist['mcrypt'] = false; } - // Check XML - if(function_exists('xml_parser_create')) + // Check xml & simplexml + if(function_exists('xml_parser_create') && function_exists('simplexml_load_string')) { $checklist['xml'] = true; } diff --git a/modules/install/lang/lang.xml b/modules/install/lang/lang.xml index 6a1e0a1c0..ab1cacc68 100644 --- a/modules/install/lang/lang.xml +++ b/modules/install/lang/lang.xml @@ -137,20 +137,22 @@ - - - - - - - - + + + + + + + + + + @@ -161,6 +163,7 @@ + @@ -171,6 +174,7 @@ + @@ -181,20 +185,22 @@ + - - - - - - - - - + + + + + + + + + +