This commit is contained in:
midoks
2020-09-30 02:48:16 +08:00
parent c36d42b67e
commit b86a9294f2
2 changed files with 6 additions and 2 deletions
-1
View File
@@ -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>
+6 -1
View File
@@ -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):