This commit is contained in:
Mr Chen
2024-07-19 23:37:27 +08:00
parent a21c7eac02
commit 1921deb7e3
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ server
#ERROR-PAGE-END
#PHP-INFO-START
include {$SERVER_PATH}/web_conf/php/conf/enable-php-80.conf;
include {$SERVER_PATH}/web_conf/php/conf/enable-${PHP_VER}.conf;
#PHP-INFO-END
#禁止访问的文件或目录
+2 -1
View File
@@ -271,13 +271,14 @@ def initZsConf():
def initPhpConf():
phpver = getInstalledPhpConfDir()
php_src_tpl = getPluginDir()+'/conf/zabbix.conf.php'
php_dst_path = zabbixPhpConf()
# php配置
if not os.path.exists(php_dst_path):
content = mw.readFile(php_src_tpl)
content = contentReplace(content)
content = content.replace('{$PHP_VER}',phpver,content)
mw.writeFile(php_dst_path, content)
def initAgentConf():