php-fpm php.ini per user

nservices

Verified User
Joined
Dec 11, 2008
Messages
301
Hi,
am new with the php-fpm
can anyone explain to me please:
1. how can I configure php.ini per user (like with the suphp)
2. how can I use the security limit extensions - I just see the value
security.limit_extensions = |LIMIT_EXTENSIONS|
but I didn't find way to control it.

Best Regards,
Star Network.
 
/usr/local/directadmin/data/templates/php-fpm.conf is the template for php-fpm.conf files. E.g. you have PHP 5.4 installed, you can find individual file here (example for admin user): /usr/local/directadmin/data/users/admin/php/php-fpm54.conf. There you will find some default values from templates, like:
Code:
php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f [email protected]
php_admin_value[open_basedir] = /home/admin/:/tmp/:/var/tmp/:/usr/local/php53/lib/:/usr/local/php54/lib/

This way you can add your custom PHP settings too. For example:
Code:
php_admin_value[memory_limit] = 128M
 
php flags can be used also with httpd conf file with php_mode
the php-fpm54.conf is not "over writed" when we update configurations?

Best Regards,
Star Network.
 
Though you can change PHP settings individually with php_admin_value in a config file, you can not use individual php.ini files for the purpose. This is what I try to say.
 
Back
Top