Php-cli don't have same php.ini config with Apache php config


On virtualmin the php on bash doesn’t have the php.ini file configured.
I have the default file on the php cli .

On ubuntu 20.04 the php cli have this configuration file : /etc/php/7.4/cli/php.ini
But i use the file : /home/USER/etc/php7.4/php.ini on apache

So the configuration i have made in php.ini is not used on php cli for this user.

i have to add in .bashrc for this user :
alias php=‘php -c ~/etc/php7.4/php.ini’

Can you add this to user configuration on creating and changing default php version ?


Any tips or other to do correctly ?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.