Control Web Panel

WebPanel => PHP => Topic started by: batgranny on November 29, 2016, 12:00:51 PM

Title: Installing imagick for php7
Post by: batgranny on November 29, 2016, 12:00:51 PM
Hi there,

How do you install imagick for php7?  when you use the script it seems to install fine for php5 but not for 7.  Are there any instructions anywhere?
Title: Re: Installing imagick for php7
Post by: Administrator on November 30, 2016, 05:22:37 PM
try something like this, make sure that you replace what you need for php7

wget http://pecl.php.net/get/imagick-3.1.0RC2.tgz
tar zxf imagick-3.1.0RC2.tgz
cd imagick-3.1.0RC2
phpize
ln -s /usr/local/include/ImageMagick-6 /usr/local/include/ImageMagick
./configure
make
make test

echo "extension=imagick.so" >> /usr/local/php/php.ini