diff --git a/plugins/php/conf/php-fpm-52.conf b/plugins/php/conf/php-fpm-52.conf index a6e99d07d..ffc418981 100644 --- a/plugins/php/conf/php-fpm-52.conf +++ b/plugins/php/conf/php-fpm-52.conf @@ -147,7 +147,6 @@ $OSTYPE $MACHTYPE 2 - /www/server/php/app_start.php diff --git a/plugins/php/index.py b/plugins/php/index.py index 78453e485..161c68196 100755 --- a/plugins/php/index.py +++ b/plugins/php/index.py @@ -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):