ImageMagick for php7

Heuveltje

Verified User
Joined
Nov 7, 2006
Messages
77
Location
Leek, NL
Hi,

A while ago i managed to install imagemagick for php5.

I am running php5 & php7 thanx to custombuild.
Now i want to phase out php5 and also move the installed imagemagick to php7 as it is only running on php5 right now.

I get a warning for php7
Code:
PHP Warning:  PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20131226
PHP    compiled with module API=20151012
These options need to match
 in Unknown on line 0

Does anybody know which commands to run to move the installed version to php7?

Code:
# find / -name phpize
/usr/local/bin/phpize
/usr/local/php70/bin/phpize
/usr/local/php56/bin/phpize

# find / -name php-config
/usr/local/bin/php-config
/usr/local/php70/bin/php-config
/usr/local/php56/bin/php-config

System:
CentOS 7
Directadmin 1.32
Custombuild 2
PHP5.6.36 & PHP7.0.30

All help welcome :-)
 
Hi Wattie,

sorry for slow response. But i haven't resolved this issue
If i try your suggestion i get:
Code:
# ./pecl upgrade-all
Nothing to upgrade-all
 
I guess you can revert what you did and then install it using PECL:

Code:
cd /usr/local/php70/bin
./pecl install imagick

Then just restart PHP and (eventually) Apache. It should work.
 
Back
Top