mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
@@ -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
|
||||
|
||||
#禁止访问的文件或目录
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user