From 758da441414eb19e582ceac5be575343a9f207bc Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 9 Jan 2023 11:39:52 +0800 Subject: [PATCH] up --- plugins/php-yum/install.sh | 1 + plugins/php-yum/versions/common.sh | 5 +++++ plugins/php-yum/versions/phplib.conf | 13 +++++++++++++ 3 files changed, 19 insertions(+) diff --git a/plugins/php-yum/install.sh b/plugins/php-yum/install.sh index dbd74b592..a7611efa8 100755 --- a/plugins/php-yum/install.sh +++ b/plugins/php-yum/install.sh @@ -69,6 +69,7 @@ if [ "${action}" == "install" ] && [ -d ${serverPath}/php-yum/${type} ];then # 安装通用扩展 echo "install PHP-YUM[${type}] extend start" cd ${rootPath}/plugins/php-yum/versions && bash common.sh ${type} install mysqlnd + cd ${rootPath}/plugins/php-yum/versions && bash common.sh ${type} install mysql cd ${rootPath}/plugins/php-yum/versions && bash common.sh ${type} install gd cd ${rootPath}/plugins/php-yum/versions && bash common.sh ${type} install iconv cd ${rootPath}/plugins/php-yum/versions && bash common.sh ${type} install exif diff --git a/plugins/php-yum/versions/common.sh b/plugins/php-yum/versions/common.sh index 038a1fe07..c0ec215c9 100644 --- a/plugins/php-yum/versions/common.sh +++ b/plugins/php-yum/versions/common.sh @@ -21,6 +21,7 @@ extName=$3 FILE=${curPath}/${version}/${extName}.sh # yum install -y php81-php-yar +# yum install -y php74-php-pecl-mysql if [ "$action" == 'install' ];then @@ -30,6 +31,10 @@ if [ "$action" == 'install' ];then else yum install -y php${version}-php*-${extName} fi + + # if [ "${extName}" == "mysql" ];then + # yum install -y php74-php-pecl-mysql + # fi fi diff --git a/plugins/php-yum/versions/phplib.conf b/plugins/php-yum/versions/phplib.conf index 2b0f72c78..5f255cb5a 100755 --- a/plugins/php-yum/versions/phplib.conf +++ b/plugins/php-yum/versions/phplib.conf @@ -25,6 +25,19 @@ "shell": "mysqlnd.sh", "check": "mysqlnd" }, + { + "name": "mysql", + "versions": [ + "74", + "80", + "81", + "82" + ], + "type": "数据库", + "msg": "用于使用MySQL数据库的模块!", + "shell": "mysql.sh", + "check": "mysql" + }, { "name": "oci8", "versions": [