This commit is contained in:
Mr Chen
2024-06-13 20:33:08 +08:00
parent c7faaeff62
commit 7ad235bba1
2 changed files with 13 additions and 0 deletions
+11
View File
@@ -803,6 +803,13 @@ def uninstallLib(version):
else:
return mw.returnJson(False, '卸载错误信息!:' + data[1])
def getConfAppStart():
pstart = mw.getServerDir() + '/php/app_start.php'
return pstart
def opcacheBlacklistFile():
op_bl = mw.getServerDir() + '/php/opcache-blacklist.txt'
return op_bl
def installPreInspection(version):
sys = mw.execShell(
@@ -857,6 +864,10 @@ if __name__ == "__main__":
print(fpmSlowLog(version))
elif func == 'conf':
print(getConf(version))
elif func == 'app_start':
print(getConfAppStart())
elif func == 'opcache_blacklist_file':
print(opcacheBlacklistFile())
elif func == 'get_php_conf':
print(getPhpConf(version))
elif func == 'get_fpm_conf_file':
+2
View File
@@ -137,6 +137,8 @@ function phpCommonFunc(version){
// <button class="btn btn-default btn-sm" onclick="phpPreload(\'' + version + '\')">预加载脚本</button>\
con += '<hr/><p class="conf_p" style="text-align:center;">\
<button class="btn btn-default btn-sm" onclick="getPHPInfo(\'' + version + '\')">查看phpinfo()</button>\
<button class="btn btn-default btn-sm" onclick="phpPreload(\'' + version + '\')">预加载脚本</button>\
<button class="btn btn-default btn-sm" onclick="phpOpcacheBlacklist(\'' + version + '\')">OPCACHE黑名单</button>\
<button class="btn btn-default btn-sm" onclick="phpFpmRoot(\'' + version + '\')">PHP-FPM(global)</button>\
</p>';