How to have different PHP.ini for php-cli

El CapitanPH

Verified User
Joined
Apr 20, 2018
Messages
29
Hello All;

I'm using nginx_apache, and we use PHP-fpm now our problem our Magento 2 need "exec" of course this is disable as global
is there a way to have separate php.ini for cli i already check there is no cli folder.

PHP VERSION
php7.0 1st
php7.1 2nd
php7.2 3rd
Looking forward for your help
 
Hello All;

I'm using nginx_apache, and we use PHP-fpm now our problem our Magento 2 need "exec" of course this is disable as global
is there a way to have separate php.ini for cli i already check there is no cli folder.

PHP VERSION
php7.0 1st
php7.1 2nd
php7.2 3rd
Looking forward for your help

I solve it :)
hehe so i use -d disable_functions= from cron
Now my question is this ok to use at cron ?

And also is there a way so i can use a custom php.ini per php-cli
 
Last edited:
Back
Top