PHP extensions loading in apache module, but not in CLI PHP extensions loading in apache module, but not in CLI apache apache

PHP extensions loading in apache module, but not in CLI


I has the similar issue with mcrypt extension.

Solved it by removing extension=mcrypt.so from main php.ini because the extension was included in additional file, from conf.d path. I think you can solve your problem it in same mode. Just remove all rows that you are included in your php.ini.

Good luck!