This commit is contained in:
Mr Chen
2024-06-11 12:39:04 +08:00
parent 0c0f20a75d
commit ade2809a72
10 changed files with 25 additions and 23 deletions
+16 -14
View File
@@ -75,7 +75,7 @@ fi
cd ${curPath} && sh -x $curPath/versions/$2/install.sh $1
if [ "${action}" == "install" ] && [ -d ${serverPath}/php-apt/${type} ];then
apt_ver=${type:0:1}.${type:1:2}
#初始化
cd ${rootPath} && python3 ${rootPath}/plugins/php-apt/index.py start ${type}
cd ${rootPath} && python3 ${rootPath}/plugins/php-apt/index.py restart ${type}
@@ -83,19 +83,19 @@ if [ "${action}" == "install" ] && [ -d ${serverPath}/php-apt/${type} ];then
# 安装通用扩展
echo "install PHP-APT[${type}] extend start"
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install curl
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install gd
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install iconv
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install exif
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install intl
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
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install curl
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install gd
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install iconv
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install exif
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install intl
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install xml
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install mcrypt
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install mysqlnd
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install mysql
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install gettext
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install redis
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install memcached
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${apt_ver} install mbstring
echo "install PHP-APT[${type}] extend end"
if [ ! -f /usr/local/bin/composer ];then
@@ -103,6 +103,8 @@ if [ "${action}" == "install" ] && [ -d ${serverPath}/php-apt/${type} ];then
curl -sS https://getcomposer.org/installer | /usr/bin/php${type:0:1}.${type:1:2}
mv composer.phar /usr/local/bin/composer
fi
systemctl restart php${apt_ver}-fpm
fi
+1 -1
View File
@@ -39,7 +39,7 @@ Uninstall_php()
#------------------------ uninstall start ------------------------------------#
apt -y remove php${version} php${version}-*
rm -rf $serverPath/php-apt/${PHP_VER}
echo "卸载php-${version}..." > $install_tmp
echo "卸载php-${version}..."
#------------------------ uninstall start ------------------------------------#
}
+1 -1
View File
@@ -37,7 +37,7 @@ Uninstall_php()
#------------------------ uninstall start ------------------------------------#
apt -y remove php${version} php${version}-*
rm -rf $serverPath/php-apt/${PHP_VER}
echo "卸载php-${version}..." > $install_tmp
echo "卸载php-${version}..."
#------------------------ uninstall start ------------------------------------#
}
+1 -1
View File
@@ -37,7 +37,7 @@ Uninstall_php()
#------------------------ uninstall start ------------------------------------#
apt -y remove php${version} php${version}-*
rm -rf $serverPath/php-apt/${PHP_VER}
echo "卸载php-${version}..." > $install_tmp
echo "卸载php-${version}..."
#------------------------ uninstall start ------------------------------------#
}
+1 -1
View File
@@ -40,7 +40,7 @@ Uninstall_php()
#------------------------ uninstall start ------------------------------------#
apt -y remove php${version} php${version}-*
rm -rf $serverPath/php-apt/${PHP_VER}
echo "卸载php-${version}..." > $install_tmp
echo "卸载php-${version}..."
#------------------------ uninstall start ------------------------------------#
}
+1 -1
View File
@@ -37,7 +37,7 @@ Uninstall_php()
#------------------------ uninstall start ------------------------------------#
apt -y remove php${version} php${version}-*
rm -rf $serverPath/php-apt/${PHP_VER}
echo "卸载php-${version}..." > $install_tmp
echo "卸载php-${version}..."
#------------------------ uninstall start ------------------------------------#
}
+1 -1
View File
@@ -37,7 +37,7 @@ Uninstall_php()
#------------------------ uninstall start ------------------------------------#
apt -y remove php${version} php${version}-*
rm -rf $serverPath/php-apt/${PHP_VER}
echo "卸载php-${version}..." > $install_tmp
echo "卸载php-${version}..."
#------------------------ uninstall start ------------------------------------#
}
+1 -1
View File
@@ -37,7 +37,7 @@ Uninstall_php()
#------------------------ uninstall start ------------------------------------#
apt -y remove php${version} php${version}-*
rm -rf $serverPath/php-apt/${PHP_VER}
echo "卸载php-${version}..." > $install_tmp
echo "卸载php-${version}..." >
#------------------------ uninstall start ------------------------------------#
}
+1 -1
View File
@@ -37,7 +37,7 @@ Uninstall_php()
#------------------------ uninstall start ------------------------------------#
apt -y remove php${version} php${version}-*
rm -rf $serverPath/php-apt/${PHP_VER}
echo "卸载php-${version}..." > $install_tmp
echo "卸载php-${version}..."
#------------------------ uninstall start ------------------------------------#
}
+1 -1
View File
@@ -37,7 +37,7 @@ Uninstall_php()
#------------------------ uninstall start ------------------------------------#
apt -y remove php${version} php${version}-*
rm -rf $serverPath/php-apt/${PHP_VER}
echo "卸载php-${version}..." > $install_tmp
echo "卸载php-${version}..."
#------------------------ uninstall start ------------------------------------#
}