ImageMagick Install

Thank you, that helped. I removed the function names that gave an error because they were in disable_functions. The error messages disapeard!
 
in php5.4 i install imagemagic but i get this massage:
PHP Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20100525
These options need to match
in Unknown on line 0
.........................................
php5.4 and imagemagic not compatible!!?
Can this problem be solved?
 
in php5.4 i install imagemagic but i get this massage:
PHP Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20100525
These options need to match
in Unknown on line 0
.........................................
php5.4 and imagemagic not compatible!!?
Can this problem be solved?

You need to use the right phpize and the right ./configure string, try the following:

I have PHP5.5 and PHP5.4 running on our webservers, so in my case it will be:

[root@web ~]# find / -name phpize
/usr/local/php54/bin/phpize
/usr/local/php55/bin/phpize

And then:

[root@web ~]# find / -name php-config
/usr/local/php54/bin/php-config
/usr/local/php55/bin/php-config


So if I want to install imagick for PHP5.4 it would be the following:

/usr/local/php54/bin/phpize
./configure --with-php-config=/usr/local/php54/bin/php-config
make
make install
 
Try the following if you're on Centos or alike:

yum install php-devel ImageMagick ImageMagick-devel
pecl install Imagick


don't forget to add this to php.ini
extension=imagick.so

and then

service httpd restart

Thanks, This worked for me.
 
Try the following if you're on Centos or alike:

yum install php-devel ImageMagick ImageMagick-devel
pecl install Imagick


don't forget to add this to php.ini
extension=imagick.so

and then

service httpd restart


OH MY GOSH. This finally did it for me. I just wasn't doing the php.ini part right I think. I wonder how I get all that other crap off my installation, lmao
 
Perfect, I could install ghostscript with your guide :X

thank you.
 
imagic php module for php 5.3 debian wheezy/7

Hello,

i want to recompile this module after upgrade OS from debian squeeze/6 to wheezy/7.

Installed packages:
imagemagick 8:6.7.7.10-5+deb7u18
imagemagick-common 8:6.7.7.10-5+deb7u18
libmagic-dev:amd64 5.11-2+deb7u9
libmagic1:amd64 5.11-2+deb7u9
libmagick++3 8:6.6.0.4-3+squeeze6
libmagick++5:amd64 8:6.7.7.10-5+deb7u18
libmagickcore-dev 8:6.7.7.10-5+deb7u18
libmagickcore3 8:6.6.0.4-3+squeeze6
libmagickcore3-extra 8:6.6.0.4-3+squeeze6
libmagickcore5:amd64 8:6.7.7.10-5+deb7u18
libmagickcore5-extra:amd64 8:6.7.7.10-5+deb7u18
libmagickwand-dev 8:6.7.7.10-5+deb7u18
libmagickwand3 8:6.6.0.4-3+squeeze6
libmagickwand5:amd64 8:6.7.7.10-5+deb7u18

I compile it in this way:
Code:
wget http://pecl.php.net/get/imagick-3.0.1.tgz
tar zxf imagick-3.0.1.tgz
cd imagick-3.0.1
/usr/local/bin/phpize
./configure --with-php-config=/usr/local/bin/php-config
make
make install

It compiles, but test page doesn't work. No error in apache log or in page itself. For test page i use https://github.com/sirleech/php-imagick/blob/master/hello.php

I compared Makefile which was created on old system and upgraded and found such differences:
Code:
diff Makefile_deb7 /usr/src/imagick-3.0.1/Makefile_deb6
14c14
< IMAGICK_SHARED_LIBADD = -lMagickWand -lMagickCore
---
> IMAGICK_SHARED_LIBADD = -lMagickWand -lMagickCore -llcms -ltiff -lfreetype -ljpeg -llqr-1 -lglib-2.0 -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lltdl
44c44
< SHELL = /bin/bash
---
> SHELL = /bin/sh
146d145
<               TEST_RESULT_EXIT_CODE=$$?; \
148d146
<               exit $$TEST_RESULT_EXIT_CODE; \
As i understand that difference comes from /usr/bin/MagickWand-config:
Code:
# /usr/bin/MagickWand-config-deb6  --libs
-L/usr/lib -lMagickWand -lMagickCore -llcms -ltiff -lfreetype -ljpeg -llqr-1 -lglib-2.0 -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lpthread -lltdl
# /usr/bin/MagickWand-config-deb7  --libs
-lMagickWand -lMagickCore

Does anyone have an idea how to compile it properly
 
I found this post from Google when searching a tutorial to install Imagick
Not sure I still can use these guides to install Imagick on my Centos 6 server?

Or is there a simpler way to install Imagick on my Directadmin without running too many steps like this?

Thanks
 
/tmp directory is often non executable. The solution is to execute
Code:
pear config-set temp_dir /root/tmp
before
Code:
pecl install Imagick
. Sometimes you also have to install
Code:
yum install shtool
 
imagick=yes/no is now a CB 2.0 options from rev. 2109 (defaults to "no"). Thank you! :)
 
Fixed in CB 2.0 rev. 2132 (might take ~8 hours for the mirrors to have it), thank you for the report!
 
Back
Top