pull/121/head
midoks 3 years ago
parent a3e99eae6e
commit aa5f1758b9
  1. 7
      class/core/site_api.py
  2. 2
      plugins/php-yum/info.json
  3. 52
      plugins/php-yum/versions/82/install.sh
  4. 10
      plugins/php-yum/versions/phplib.conf

@ -2036,6 +2036,13 @@ location ~* ^{from}(.*)$ {
data.append(tmp) data.append(tmp)
# 其他PHP安装类型 # 其他PHP安装类型
conf_dir = mw.getServerDir() + "/web_conf/php/conf"
rlist = os.listdir(rPath)
l = len(rlist)
for name in rlist:
path = conf_dir + name
print(name)
print(path)
return mw.getJson(data) return mw.getJson(data)

@ -5,7 +5,7 @@
"name": "php-yum", "name": "php-yum",
"title": "PHP[YUM]", "title": "PHP[YUM]",
"coexist": true, "coexist": true,
"versions": ["74","80","81"], "versions": ["74","80","81","82"],
"install_pre_inspection":true, "install_pre_inspection":true,
"tip": "soft", "tip": "soft",
"checks": "server/php-yum/VERSION", "checks": "server/php-yum/VERSION",

@ -0,0 +1,52 @@
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
curPath=`pwd`
rootPath=$(dirname "$curPath")
rootPath=$(dirname "$rootPath")
serverPath=$(dirname "$rootPath")
sourcePath=${serverPath}/source
sysName=`uname`
install_tmp=${rootPath}/tmp/mw_install.pl
#获取信息和版本
# bash /www/server/mdsever-web/scripts/getos.sh
bash ${rootPath}/scripts/getos.sh
OSNAME=`cat ${rootPath}/data/osname.pl`
VERSION_ID=`cat /etc/*-release | grep VERSION_ID | awk -F = '{print $2}' | awk -F "\"" '{print $2}'`
version=8.2.x
PHP_VER=82
Install_php()
{
#------------------------ install start ------------------------------------#
### centos start ################
rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-${VERSION_ID}.rpm
yum install -y php82 php82-php-fpm
### centos start ################
if [ "$?" == "0" ];then
mkdir -p $serverPath/php-yum/${PHP_VER}
fi
#------------------------ install end ------------------------------------#
}
Uninstall_php()
{
# $serverPath/php-ya/init.d/php${PHP_VER} stop
rm -rf $serverPath/php-yum/${PHP_VER}
echo "卸载php-${version}..." > $install_tmp
}
action=${1}
if [ "${1}" == 'install' ];then
Install_php
else
Uninstall_php
fi

@ -9,7 +9,7 @@
"81" "81"
], ],
"type": "数据库", "type": "数据库",
"msg": "用于使用MySQL数据库的PHP应用程序的模块!", "msg": "用于使用MySQL数据库的模块!",
"shell": "mysqlnd.sh", "shell": "mysqlnd.sh",
"check": "mysqlnd" "check": "mysqlnd"
}, },
@ -23,7 +23,7 @@
"81" "81"
], ],
"type": "数据库", "type": "数据库",
"msg": "用于使用OCI8数据库的PHP应用程序的模块!", "msg": "用于使用OCI8数据库的模块!",
"shell": "oci8.sh", "shell": "oci8.sh",
"check": "oci8" "check": "oci8"
}, },
@ -37,7 +37,7 @@
"81" "81"
], ],
"type": "数据库", "type": "数据库",
"msg": "用于使用ODBC数据库的PHP应用程序的模块!", "msg": "用于使用ODBC数据库的模块!",
"shell": "odbc.sh", "shell": "odbc.sh",
"check": "odbc" "check": "odbc"
}, },
@ -258,7 +258,7 @@
"check": "apc" "check": "apc"
}, },
{ {
"name": "imagemagick", "name": "imagick",
"versions": [ "versions": [
"54", "54",
"55", "55",
@ -273,7 +273,7 @@
], ],
"type": "通用扩展", "type": "通用扩展",
"msg": "比GD更强大的图形库", "msg": "比GD更强大的图形库",
"shell": "imagemagick.sh", "shell": "imagick.sh",
"check": "imagick" "check": "imagick"
}, },
{ {

Loading…
Cancel
Save