pull/119/head
midoks 3 years ago
parent 87a8e4a0ce
commit 5f3a8bbdca
  1. 2
      plugins/openresty/install.sh
  2. 2
      plugins/php/index.py

@ -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

@ -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)

Loading…
Cancel
Save