diff --git a/plugins/php-apt/install.sh b/plugins/php-apt/install.sh index 61bf7ce48..e6df6e72a 100755 --- a/plugins/php-apt/install.sh +++ b/plugins/php-apt/install.sh @@ -85,14 +85,16 @@ if [ "${action}" == "install" ] && [ -d ${serverPath}/php-apt/${type} ];then cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install xml cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install mcrypt cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install mysqlnd + cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install mysql cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install gettext cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install redis cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install memcached + cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install mbstring echo "install PHP-APT[${type}] extend end" if [ ! -f /usr/local/bin/composer ];then cd /tmp - curl -sS https://getcomposer.org/installer | php + curl -sS https://getcomposer.org/installer | /usr/bin/php${type:0:1}.${type:1:2} mv composer.phar /usr/local/bin/composer fi fi diff --git a/plugins/php-apt/versions/common.sh b/plugins/php-apt/versions/common.sh index eed0b1106..d3cec7215 100644 --- a/plugins/php-apt/versions/common.sh +++ b/plugins/php-apt/versions/common.sh @@ -57,5 +57,4 @@ fi echo "apt install -y php${version}-${extName}" echo "apt remove -y php${version}-${extName}" - - +systemctl restart php${version}-fpm diff --git a/plugins/php-apt/versions/phplib.conf b/plugins/php-apt/versions/phplib.conf index a16f290d6..902074c3e 100755 --- a/plugins/php-apt/versions/phplib.conf +++ b/plugins/php-apt/versions/phplib.conf @@ -35,6 +35,24 @@ "shell": "mysqlnd.sh", "check": "mysqlnd" }, + { + "name": "mysql", + "versions": [ + "56", + "70", + "71", + "72", + "73", + "74", + "80", + "81", + "82" + ], + "type": "数据库", + "msg": "用于使用MySQL数据库的模块!", + "shell": "mysql.sh", + "check": "mysql" + }, { "name": "sqlite3", "versions": [ diff --git a/plugins/php-yum/install.sh b/plugins/php-yum/install.sh index aff4c2783..51ccedaf8 100755 --- a/plugins/php-yum/install.sh +++ b/plugins/php-yum/install.sh @@ -82,11 +82,9 @@ if [ "${action}" == "install" ] && [ -d ${serverPath}/php-yum/${type} ];then cd ${rootPath}/plugins/php-yum/versions && bash common.sh ${type} install mbstring echo "install PHP-YUM[${type}] extend end" - cd ${rootPath} && python3 ${rootPath}/plugins/php-yum/index.py restart ${type} - if [ ! -f /usr/local/bin/composer ];then cd /tmp - curl -sS https://getcomposer.org/installer | php + curl -sS https://getcomposer.org/installer | /opt/remi/php${type}/root/usr/bin/php mv composer.phar /usr/local/bin/composer fi fi diff --git a/plugins/php/install.sh b/plugins/php/install.sh index 5557e468e..57ab73113 100755 --- a/plugins/php/install.sh +++ b/plugins/php/install.sh @@ -82,7 +82,7 @@ if [ "${action}" == "install" ] && [ -d ${serverPath}/php/${type} ];then if [ ! -f /usr/local/bin/composer ];then cd /tmp - curl -sS https://getcomposer.org/installer | php + curl -sS https://getcomposer.org/installer | /www/server/php/${type}/bin/php mv composer.phar /usr/local/bin/composer fi fi