php_admin_value suhosin.executor.func.blacklist and PHP CGI

Blueman

Verified User
Joined
Nov 20, 2009
Messages
53
I changed from mod_php with mod_ruid2 to php-fpm and fastcgi I found a problem related to

php_admin_value

When I use mod_php I can disable and disable some functions with suhosin.executor.func.blacklist but after changed php I can't use php_admin_value anymore.

So How can I use suhosin.executor.func.blacklist with php-fpm and fastcgi ?

Thank you
 
Hello,

For fastcgi create a file:

/usr/local/directadmin/data/users/USERNAME/php/DOMAIN.ini

Replace USERNAME, DOMAIN with your real data.

with your instructions for PHP and restart apache.



For PHP-FPM it is:

/usr/local/directadmin/data/users/USERNAME/php/php-fpmPHPVER.conf

Restart php-fpm.

Replace USERNAME and PHPVER with your real data.
 
Hello Alex,

Thank you for your reply. I installed 2 versions of PHP

php1_release=5.4
php1_mode=php-fpm
php2_release=5.3
php2_mode=fastcgi

I can find like your comment in php-fpm (/usr/local/directadmin/data/users/USERNAME/php/php-fpmPHPVER.conf) but I can't find ini file (/usr/local/directadmin/data/users/USERNAME/php/DOMAIN.ini)

so in this case how should I do.

Thank you
 
The file /usr/local/directadmin/data/users/USERNAME/php/DOMAIN.ini does not exist by default. You should create it first if you are going to use it.
 
Is it possible to custom php.ini (or suhosin blacklist in virtualhost.conf) in suPHP with 2 versions of PHP (mod_php and suPHP) ?
 
Back
Top