diff --git a/plugins/openresty/install.sh b/plugins/openresty/install.sh index f4225a1a3..a769b4a3b 100755 --- a/plugins/openresty/install.sh +++ b/plugins/openresty/install.sh @@ -51,7 +51,7 @@ Install_openresty() echo "${VERSION}" > $serverPath/openresty/version.pl mkdir -p $serverPath/web_conf/php/conf - echo "" > $serverPath/web_conf/php/conf/enable-php-00.conf + echo 'set $PHP_ENV 0;' > $serverPath/web_conf/php/conf/enable-php-00.conf #初始化 cd ${rootPath} && python3 ${rootPath}/plugins/openresty/index.py start diff --git a/plugins/php/index.py b/plugins/php/index.py index 9c09647db..32e2fa25e 100755 --- a/plugins/php/index.py +++ b/plugins/php/index.py @@ -152,7 +152,7 @@ def makeOpenrestyConf(): dfile = sdir + '/web_conf/php/conf/enable-php-' + x + '.conf' if not os.path.exists(dfile): if x == '00': - mw.writeFile(dfile, '') + mw.writeFile(dfile, 'set $PHP_ENV 0;') else: w_content = contentReplace(tpl_content, x) mw.writeFile(dfile, w_content)