Hello,
Here is full instruction how to compile php imagick extension.
Firstly you need to install imagemagick from Webuzo -> Apps -> Utilites -> ImageMagick
Then enter server shell and execute following commands:
PHP Code #You will need to install some extra packages for module compilation (for CentOS)
yum install pkgconfig autoconf
#Enter directory with PHP version for which you would like to create imagick extension:
cd /usr/local/apps/php56/bin/
#Download extension using pecl (if you try to install it using pecl, then it will compile without any errors, but flush library after creation)
./pecl download imagick
#Untar extension sources and enter is directory (mention, that downloaded version of extension will change)
tar xf /usr/local/apps/php56/bin/imagick-3.3.0.tar
cd imagick-3.3.0
#Run phpize
/usr/local/apps/php56/bin/phpize
#configure with providing paths to php-config and imagemagick install
./configure --with-php-config=/usr/local/apps/php56/bin/php-config --with-imagick=/usr/local/apps/imagemagick/
#Run it's compilation and installation
make && make install
#Add created extension to php config in order to enable module
echo "extension=/usr/local/apps/php56/lib/extensions/no-debug-non-zts-20131226/imagick.so" >> /usr/local/apps/php56/etc/php.d/extra.ini
#Reload apache configuration
/usr/local/apps/apache2/bin/httpd -k graceful
|