跳到主要内容
版本:latest

SetPHPVersion

切换指定网站的 PHP 版本。

  • 路由POST /site
  • actionSetPHPVersion

输入参数

参数名称必选类型描述
actionString固定值 SetPHPVersion
siteNameString网站域名
versionStringPHP 版本号,"00" 纯静态,"74"/"80"/"81"/"82"/"83"/"84"

输出参数

参数名称类型描述
statusBooleantrue 切换成功

示例

请求

POST /site HTTP/1.1
Host: 192.168.168.213:8888
Content-Type: application/x-www-form-urlencoded

action=SetPHPVersion&siteName=testapi.bt.local&version=00

响应

{"status": true, "msg": "成功切换网站[testapi.bt.local]的PHP版本为PHP-00"}