diff --git a/plugins/xhprof/index.py b/plugins/xhprof/index.py index cc4410a73..321fc9a63 100755 --- a/plugins/xhprof/index.py +++ b/plugins/xhprof/index.py @@ -207,6 +207,7 @@ def getConfAppStart(): def installPreInspection(): + path = mw.getServerDir() + '/php' if not os.path.exists(path): return "先安装一个可用的PHP版本!"