diff --git a/web/utils/site.py b/web/utils/site.py index 33eb03133b..6ec5657482 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -2484,6 +2484,8 @@ def getPhpVersion(self): # 其他PHP安装类型 conf_dir = mw.getServerDir() + "/web_conf/php/conf" + if not os.path.exists(conf_dir): + return data conf_list = os.listdir(conf_dir) l = len(conf_list) rep = r"enable-php-(.*?)\.conf"