I'm setting up an Amazon Linux environment, and after installing some modules:
sudo yum install php-xml
sudo yum install php-gd
for example... and installing Imagick, and restarting (sudo service httpd restart) it does not seem to be installing for PHP-Apache. I'm using the official PHP7.2 in Amazon Linux 2 and oddly enough, for example xml_parser_create() does work in the php -a console, but when I put it in a php file, it causes exception when going to the php file, blank screen. Oddly enough it's not even getting the function not defined error to the /var/log/httpd logs.
phpinfo() also does not show Imagick or gd although installed.
I have checked php ini files for disabled_functions and didn't find anything else that would otherwise be an obvious breakage in the default install... is there a new way I'm supposed to enable PHP modules for the Apache php install?
PHP-Apachemake sure they are added to bothphpinfo()outputphpinfo()once through the CLI and once through Apache and then checking whether they are using the same INI file - specifically theLoaded Configuration Filerow (7th from top to bottom)extension_dirdirective. I had the same problem on Windows and once I replaced"ext"with the full path, it resolved the problem