pull/598/head
Mr Chen 11 months ago
parent 0c0f20a75d
commit ade2809a72
  1. 30
      plugins/php-apt/install.sh
  2. 2
      plugins/php-apt/versions/56/install.sh
  3. 2
      plugins/php-apt/versions/70/install.sh
  4. 2
      plugins/php-apt/versions/71/install.sh
  5. 2
      plugins/php-apt/versions/72/install.sh
  6. 2
      plugins/php-apt/versions/73/install.sh
  7. 2
      plugins/php-apt/versions/74/install.sh
  8. 2
      plugins/php-apt/versions/80/install.sh
  9. 2
      plugins/php-apt/versions/82/install.sh
  10. 2
      plugins/php-apt/versions/83/install.sh

@ -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

@ -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 ------------------------------------#
}

@ -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 ------------------------------------#
}

@ -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 ------------------------------------#
}

@ -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 ------------------------------------#
}

@ -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 ------------------------------------#
}

@ -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 ------------------------------------#
}

@ -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 ------------------------------------#
}

@ -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 ------------------------------------#
}

@ -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 ------------------------------------#
}

Loading…
Cancel
Save