When I try to run a script that uses imap in my browser, it works fine (it is loaded from a Ubuntu 14.04 server on my network with the extension installed). However, when I try to use PHP CLI on said server, it doesn't load imap.
I wrote a simple script to check loaded extensions, using get_loaded_extensions(), and it taught me 2 things:
- PHP CLI had 50 extensions, while running it through my web browser had 51.
- Another extension I manually declared in my
apache2/php.ini(imagick.so) was being loaded in both CLI and browser
Why is this happening, and how can I have all 51 extensions loaded in both CLI and browser?