File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -608,6 +608,15 @@ public function configure_nginx(){
608608 af ('/etc/php5/fpm/php-fpm.conf ' ,"\ninclude=/etc/php5/fpm/pool.d/*.conf " );
609609 }
610610 unset($ content );
611+ if (!@is_file ($ conf ['nginx ' ]['php_fpm_ini_path ' ])){
612+ if (@is_file ('/etc/php5/cli/php.ini ' )){
613+ exec ('cp -f /etc/php5/cli/php.ini ' .$ conf ['nginx ' ]['php_fpm_ini_path ' ]);
614+ } elseif (@is_file ('/etc/php5/fastcgi/php.ini ' )){
615+ exec ('cp -f /etc/php5/fastcgi/php.ini ' .$ conf ['nginx ' ]['php_fpm_ini_path ' ]);
616+ } elseif (@is_file ('/etc/php5/apache2/php.ini ' )){
617+ exec ('cp -f /etc/php5/apache2/php.ini ' .$ conf ['nginx ' ]['php_fpm_ini_path ' ]);
618+ }
619+ }
611620
612621 //* make sure that webalizer finds its config file when it is directly in /etc
613622 if (@is_file ('/etc/webalizer.conf ' ) && !@is_dir ('/etc/webalizer ' )) {
You can’t perform that action at this time.
0 commit comments