From 4bd78541fcc4592c4fd6191f2bd471d13b358adf Mon Sep 17 00:00:00 2001
From: Mr Chen
Date: Thu, 13 Jun 2024 20:37:45 +0800
Subject: [PATCH] update
---
plugins/php-yum/index.py | 11 +++++++++++
plugins/php-yum/js/php.js | 10 +++++++++-
2 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/plugins/php-yum/index.py b/plugins/php-yum/index.py
index ad17d339b..efd901315 100755
--- a/plugins/php-yum/index.py
+++ b/plugins/php-yum/index.py
@@ -802,6 +802,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):
try:
@@ -856,6 +863,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':
diff --git a/plugins/php-yum/js/php.js b/plugins/php-yum/js/php.js
index cf3b06112..5436992dd 100755
--- a/plugins/php-yum/js/php.js
+++ b/plugins/php-yum/js/php.js
@@ -136,7 +136,9 @@ function phpCommonFunc(version){
';
con += '
\
- \
+ \
+ \
+ \
\
';
@@ -176,6 +178,12 @@ function phpPreload(version){
});
}
+function phpOpcacheBlacklist(version){
+ phpPost('opcache_blacklist_file',version,{},function(data){
+ onlineEditFile(0, data['data']);
+ });
+}
+
function getFpmConfig(version){
phpPost('get_fpm_conf', version, {}, function(data){