pull/109/head
midoks 5 years ago
parent c36d42b67e
commit b86a9294f2
  1. 1
      plugins/php/conf/php-fpm-52.conf
  2. 7
      plugins/php/index.py

@ -147,7 +147,6 @@
<value name="OSTYPE">$OSTYPE</value>
<value name="MACHTYPE">$MACHTYPE</value>
<value name="MALLOC_CHECK_">2</value>
<value name="auto_prepend_file">/www/server/php/app_start.php</value>
</value>
</section>

@ -189,7 +189,12 @@ def makePhpIni(version):
d_ini = mw.getServerDir() + '/php/' + version + '/etc/php.ini'
if not os.path.exists(d_ini):
s_ini = getPluginDir() + '/conf/php' + version[0:1] + '.ini'
shutil.copyfile(s_ini, d_ini)
# shutil.copyfile(s_ini, d_ini)
content = mw.readFile(d_ini)
if version == '52':
content.replace(
'[PHP]', "[PHP]\nauto_prepend_file=\"/www/server/php/app_start.php\"")
mw.writeFile(s_ini, content)
def initReplace(version):

Loading…
Cancel
Save