mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
up
This commit is contained in:
@@ -2028,12 +2028,15 @@ location ~* ^{from}(.*)$ {
|
||||
tmp['name'] = '纯静态'
|
||||
data.append(tmp)
|
||||
|
||||
# 标准判断
|
||||
checkPath = mw.getServerDir() + '/php/' + val + '/bin/php'
|
||||
if os.path.exists(checkPath):
|
||||
tmp['version'] = val
|
||||
tmp['name'] = 'PHP-' + val
|
||||
data.append(tmp)
|
||||
|
||||
# 其他PHP安装类型
|
||||
|
||||
return mw.getJson(data)
|
||||
|
||||
# 是否跳转到https
|
||||
|
||||
@@ -27,7 +27,7 @@ Install_php()
|
||||
|
||||
### centos start ################
|
||||
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 ################
|
||||
|
||||
if [ "$?" == "0" ];then
|
||||
|
||||
@@ -27,7 +27,7 @@ Install_php()
|
||||
|
||||
### centos start ################
|
||||
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 ################
|
||||
|
||||
if [ "$?" == "0" ];then
|
||||
|
||||
@@ -27,7 +27,7 @@ Install_php()
|
||||
|
||||
### centos start ################
|
||||
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 ################
|
||||
|
||||
if [ "$?" == "0" ];then
|
||||
|
||||
Reference in New Issue
Block a user