problem with disable_function in different php versions

amir1983

New member
Joined
Feb 18, 2019
Messages
4
Hi,

I have this setting for my PHP versions and web server :

php1_release=7.1
php1_mode=mod_php
php2_release=7.0
php2_mode=php-fpm
webserver=nginx_apache


Using the following command, I have found php.ini in this location:
Code:
/usr/local/bin/php --ini | grep 'Loaded Configuration File'
Loaded Configuration File:         /usr/local/lib/php.ini

I have disabled certain functions and enabled some others. Now when I use php-fpm ( 7.0 ) although exec is not disabled in the above mentioned php.ini file, but php-fpm thinks that it's disabled. Where else should I change the disable_function parameter for this to work properly.

thanks
 
Hello,

For PHP 7.0 it is /usr/local/php70/lib/php.ini and /usr/local/php70/lib/php.conf.d/

Restart PHP-FPM afterwards.
 
Back
Top