From 59769cd8d481dc8b9bed72fd6d5a2ca9eb0f8a48 Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 5 Jul 2022 09:26:52 +0800 Subject: [PATCH] Update index.py --- plugins/openresty/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index 28c818722..bc5f71de6 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -132,7 +132,7 @@ def confReplace(): mw.execShell('mkdir -p ' + php_conf) static_conf = mw.getServerDir() + '/web_conf/php/conf/enable-php-00.conf' if not os.path.exists(static_conf): - mw.writeFile(static_conf, '') + mw.writeFile(static_conf, 'set $PHP_ENV 0;') # give nginx root permission ng_exe_bin = getServerDir() + "/nginx/sbin/nginx"