pull/121/head
midoks 3 years ago
parent fa3dec7f50
commit a3e99eae6e
  1. 3
      class/core/site_api.py
  2. 2
      plugins/php-yum/versions/74/install.sh
  3. 2
      plugins/php-yum/versions/80/install.sh
  4. 2
      plugins/php-yum/versions/81/install.sh

@ -2028,12 +2028,15 @@ location ~* ^{from}(.*)$ {
tmp['name'] = '纯静态' tmp['name'] = '纯静态'
data.append(tmp) data.append(tmp)
# 标准判断
checkPath = mw.getServerDir() + '/php/' + val + '/bin/php' checkPath = mw.getServerDir() + '/php/' + val + '/bin/php'
if os.path.exists(checkPath): if os.path.exists(checkPath):
tmp['version'] = val tmp['version'] = val
tmp['name'] = 'PHP-' + val tmp['name'] = 'PHP-' + val
data.append(tmp) data.append(tmp)
# 其他PHP安装类型
return mw.getJson(data) return mw.getJson(data)
# 是否跳转到https # 是否跳转到https

@ -27,7 +27,7 @@ Install_php()
### centos start ################ ### centos start ################
rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-${VERSION_ID}.rpm rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-${VERSION_ID}.rpm
yum install php74 php74-php-fpm yum install -y php74 php74-php-fpm
### centos start ################ ### centos start ################
if [ "$?" == "0" ];then if [ "$?" == "0" ];then

@ -27,7 +27,7 @@ Install_php()
### centos start ################ ### centos start ################
rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-${VERSION_ID}.rpm rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-${VERSION_ID}.rpm
yum install php80 php80-php-fpm yum install -y php80 php80-php-fpm
### centos start ################ ### centos start ################
if [ "$?" == "0" ];then if [ "$?" == "0" ];then

@ -27,7 +27,7 @@ Install_php()
### centos start ################ ### centos start ################
rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-${VERSION_ID}.rpm rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-${VERSION_ID}.rpm
yum install php81 php81-php-fpm yum install -y php81 php81-php-fpm
### centos start ################ ### centos start ################
if [ "$?" == "0" ];then if [ "$?" == "0" ];then

Loading…
Cancel
Save