pull/620/head
Mr Chen 10 months ago
parent 4eb33806bf
commit 9720cf7a69
  1. 2
      plugins/php-apt/info.json
  2. 1
      plugins/php-apt/install.sh
  3. 49
      plugins/php-apt/versions/84/install.sh
  4. 84
      plugins/php-apt/versions/phplib.conf

@ -5,7 +5,7 @@
"name": "php-apt", "name": "php-apt",
"title": "PHP[APT]", "title": "PHP[APT]",
"coexist": true, "coexist": true,
"versions": ["56","70","71","72","73","74","80","81","82","83"], "versions": ["56","70","71","72","73","74","80","81","82","83","84"],
"install_pre_inspection":true, "install_pre_inspection":true,
"tip": "soft", "tip": "soft",
"checks": "server/php-apt/VERSION", "checks": "server/php-apt/VERSION",

@ -44,7 +44,6 @@ if [ ! -d $curPath/versions/$2 ];then
fi fi
if [ "$OSNAME" == "ubuntu" ];then if [ "$OSNAME" == "ubuntu" ];then
find_source=`ls /etc/apt/sources.list.d | grep ondrej-ubuntu-php` find_source=`ls /etc/apt/sources.list.d | grep ondrej-ubuntu-php`
if [ "$find_source" == "" ];then if [ "$find_source" == "" ];then

@ -0,0 +1,49 @@
#!/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.3
PHP_VER=83
Install_php()
{
#------------------------ install start ------------------------------------#
apt -y install php${version} php${version}-fpm php${version}-dev
if [ "$?" == "0" ];then
mkdir -p $serverPath/php-apt/${PHP_VER}
fi
#------------------------ install end ------------------------------------#
}
Uninstall_php()
{
#------------------------ uninstall start ------------------------------------#
apt -y remove php${version} php${version}-*
rm -rf $serverPath/php-apt/${PHP_VER}
echo "卸载php-${version}..."
#------------------------ uninstall start ------------------------------------#
}
action=${1}
if [ "${1}" == 'install' ];then
Install_php
else
Uninstall_php
fi

@ -11,7 +11,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "数据库", "type": "数据库",
"msg": "数据库访问抽象模块!", "msg": "数据库访问抽象模块!",
@ -30,7 +31,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "数据库", "type": "数据库",
"msg": "用于使用MySQL数据库的模块!", "msg": "用于使用MySQL数据库的模块!",
@ -49,7 +51,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "数据库", "type": "数据库",
"msg": "用于使用MySQL数据库的模块!", "msg": "用于使用MySQL数据库的模块!",
@ -68,7 +71,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "数据库", "type": "数据库",
"msg": "用于使用sqlite3数据库的模块!", "msg": "用于使用sqlite3数据库的模块!",
@ -95,7 +99,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "数据库", "type": "数据库",
"msg": "用于使用ODBC数据库的模块!", "msg": "用于使用ODBC数据库的模块!",
@ -148,7 +153,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "缓存器", "type": "缓存器",
"msg": "用于加速PHP脚本!", "msg": "用于加速PHP脚本!",
@ -163,7 +169,7 @@
"73", "73",
"74", "74",
"80", "80",
"81" "81",
], ],
"type": "通用扩展", "type": "通用扩展",
"msg": "加密软件!", "msg": "加密软件!",
@ -182,7 +188,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "通用扩展", "type": "通用扩展",
"msg": "高精度计算!", "msg": "高精度计算!",
@ -199,7 +206,10 @@
"73", "73",
"74", "74",
"80", "80",
"81" "81",
"82",
"83",
"84"
], ],
"type": "通用扩展", "type": "通用扩展",
"msg": "用于FILE!", "msg": "用于FILE!",
@ -216,7 +226,10 @@
"73", "73",
"74", "74",
"80", "80",
"81" "81",
"82",
"83",
"84"
], ],
"type": "通用扩展", "type": "通用扩展",
"msg": "用于图像文件格式!", "msg": "用于图像文件格式!",
@ -235,7 +248,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "通用扩展", "type": "通用扩展",
"msg": "序列化扩展!", "msg": "序列化扩展!",
@ -266,7 +280,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "通用扩展", "type": "通用扩展",
"msg": "通用CURL库!", "msg": "通用CURL库!",
@ -280,7 +295,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "通用扩展", "type": "通用扩展",
"msg": "通用GD库!", "msg": "通用GD库!",
@ -299,7 +315,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "通用扩展", "type": "通用扩展",
"msg": "提供国际化支持", "msg": "提供国际化支持",
@ -330,7 +347,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "缓存器", "type": "缓存器",
"msg": "强大的内容缓存器,支持集群", "msg": "强大的内容缓存器,支持集群",
@ -349,7 +367,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "缓存器", "type": "缓存器",
"msg": "更强大的内容缓存器,支持集群", "msg": "更强大的内容缓存器,支持集群",
@ -368,7 +387,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "缓存器", "type": "缓存器",
"msg": "脚本缓存器", "msg": "脚本缓存器",
@ -387,7 +407,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "通用扩展", "type": "通用扩展",
"msg": "比GD更强大的图形库", "msg": "比GD更强大的图形库",
@ -406,7 +427,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "调试器", "type": "调试器",
"msg": "不多说,不了解的不要安装", "msg": "不多说,不了解的不要安装",
@ -425,7 +447,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "性能分析", "type": "性能分析",
"msg": "不多说,不了解的不要安装!", "msg": "不多说,不了解的不要安装!",
@ -444,7 +467,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "通用扩展", "type": "通用扩展",
"msg": "异步、并行、高性能网络通信引擎", "msg": "异步、并行、高性能网络通信引擎",
@ -506,7 +530,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "框架", "type": "框架",
"msg": "Yar是一个RPC框架", "msg": "Yar是一个RPC框架",
@ -535,7 +560,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "通用扩展", "type": "通用扩展",
"msg": "Mongodb数据库连接驱动", "msg": "Mongodb数据库连接驱动",
@ -588,7 +614,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "日志", "type": "日志",
"msg": "SeasLog高性能日志记录", "msg": "SeasLog高性能日志记录",
@ -607,7 +634,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "通用扩展", "type": "通用扩展",
"msg": "用于需要多字节字符串处理的模块", "msg": "用于需要多字节字符串处理的模块",
@ -626,7 +654,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "压缩", "type": "压缩",
"msg": "压缩组件", "msg": "压缩组件",
@ -644,7 +673,8 @@
"80", "80",
"81", "81",
"82", "82",
"83" "83",
"84"
], ],
"type": "压缩", "type": "压缩",
"msg": "压缩组件", "msg": "压缩组件",

Loading…
Cancel
Save