106
Kloxo-MR Technical Helps / php-fpm client defined config solution
« on: 2013-07-24, 20:42:40 »
I use php-fpm. The user defined php config does nothing on thier control panel - which is very unprofessional.
I have been looking for a way to bring this function to php-fpm.
I found it - and mustafa I need a little help.
In /home/phpini we find the template for the php ini file. Looking through this code I see many variables populated with php settings.
Next we look at:
/home/php-fpm/tpl
php53-fpm-pool.conf.tpl
Inside this file you can write directives that php will change default vaules for:
example:
If we can add use same technique as php ini template we can add:
Adding these to the php-fpm config for that user will make all of his domains at least have his settings. This is a GOOD work around and very logical.
Mustafa - I have no test environment. I need to know HOW to populate these variables with the users current php config settings (is there a function?)
Please help with this solution - it is very important.
I have been looking for a way to bring this function to php-fpm.
I found it - and mustafa I need a little help.
In /home/phpini we find the template for the php ini file. Looking through this code I see many variables populated with php settings.
Next we look at:
/home/php-fpm/tpl
php53-fpm-pool.conf.tpl
Inside this file you can write directives that php will change default vaules for:
example:
Code: [Select]
php_admin_flag[display_errors]=On
If we can add use same technique as php ini template we can add:
Code: [Select]
php_admin_flag[display_errors]= <?=$display_error_flag ?>
Adding these to the php-fpm config for that user will make all of his domains at least have his settings. This is a GOOD work around and very logical.
Mustafa - I have no test environment. I need to know HOW to populate these variables with the users current php config settings (is there a function?)
Please help with this solution - it is very important.