Is it possible to load a PHP module only in CLI. I am trying to enable pthreads in CLI only but it gets enabled in Apache as well and crashes the server. I am using Homebrew to install php7 and php7-pthreads. Apache Loads the modules from /usr/local/etc/php/7.0/ and everything inside /usr/local/etc/php/7.0/conf.d
I created a folder named CLI and moved the ext-pthreads.ini inside it but it didn't work.