Score:0

Can't get Imagick PHP Extension to load when building PHP from source

br flag

I've built PHP 7.4 from source, and installed ImageMagick via yum.
When I run convert --version i got Version: ImageMagick 6.9.10-68 Q16 x86_64 2021-02-24

Then I ran pecl install imagick and it says
Build process completed successfully. Installing '/usr/lib64/php/modules/imagick.so'

I've also added extension=imagick.so to my /usr/local/php/lib/php.ini file & restarted Apache.

When I run php -m | grep imagick it returns imagick, but when I view the phpinfo() page, it's not there. I've confirmed my php-cli & phpinfo() are reading the same php.ini file from /usr/local/php/lib/php.ini. Here are some screen shots:

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

What am I missing?

mforsetti avatar
tz flag
have you restarted your PHP-FPM/Apache httpd instance?
Barry Ralphs avatar
br flag
I've rebooted multiple times
djdomi avatar
za flag
please show us the used path and the pathes from PHP Info page, do you use any kind of admin panel?
Barry Ralphs avatar
br flag
I've added screen shots to the paths I'm assuming you're asking about. Let me know if you're asking about some other path. No Admin Panel.
djdomi avatar
za flag
did you edited php.ini and which one?
Barry Ralphs avatar
br flag
Yes, I added `extension=imagick.so` to `/usr/local/php/lib/php.ini`. New screen shot added to question.
djdomi avatar
za flag
could it be that you use the apache php module instead the local installed version?
Barry Ralphs avatar
br flag
Yes, that's possible. How would I check that & correct it?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.