Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Sep 2007
    Posts
    10

    Default Imagick installation problem

    A customer recently just asked us to install the php wrapper for imagemagick and I am having difficulties with the module.


    I am currently running php ver 5.2.4
    [root@test ~]# rpm -qa | grep Magick
    ImageMagick-6.2.8.0-3.el5.4
    ImageMagick-6.2.8.0-3.el5.4

    and have ImageMagick6.2.8 installed.

    My problem is that the installation for the module goes fine however does not show on my phpinfo page.

    The only thing that i can find on my php info page regarding the module is in the php core section

    extension_dir /usr/local/lib/php/extensions/no-debug-non-zts-20060613/imagick.so

    Has anyone run into this problem before or am i missing something?

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by aeternaleto View Post
    I am currently running php ver 5.2.4
    [root@test ~]# rpm -qa | grep Magick
    ImageMagick-6.2.8.0-3.el5.4
    ImageMagick-6.2.8.0-3.el5.4

    and have ImageMagick6.2.8 installed.

    My problem is that the installation for the module goes fine however does not show on my phpinfo page.
    To find about ImageMagick version
    /usr/bin/convert -version
    OR
    /usr/local/bin/convert -version

    To verify that PerlMagick is installed:
    perl -e `use Image::Magick`
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  3. #3
    Member
    Join Date
    Sep 2007
    Posts
    10

    Default

    Hi Andy

    Im not confused about what versions of ImageMagick I am running, I am more confused why my phpinfo page is not currently showing the module correctly.

    For instance a correct installation should show something like this:
    Code:
    imagick
    ImageMagick support	enabled
    Magick Backend 	ImageMagick
    ImageMagick version 	5.5.6
    PHP imagick version 	0.9.8
    MaxRGB 	255
    Supported image formats 	8BIM, 8BIMTEXT, APP1, APP1JPEG, ART, AVI, AVS, B, BIE, BMP, BMP2, BMP3, C, CACHE, CAPTION, CMYK, CMYKA, CUT, DCM, DCX, DIB, DPS, DPX, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, FAX, FILE, FITS, FPX, FRACTAL, FTP, G, G3, GIF, GIF87, GRADIENT, GRANITE, GRAY, H, HISTOGRAM, HTM, HTML, HTTP, ICB, ICC, ICM, ICO, ICON, IMPLICIT, IPTC, IPTCTEXT, JBG, JBIG, JNG, JP2, JPC, JPEG, JPG, K, LABEL, LOCALE, LOGO, M, M2V, MAP, MAT, MATTE, MIFF, MNG, MONO, MPC, MPEG, MPG, MPR, MPRI, MSL, MTV, MVG, NETSCAPE, NULL, O, OTB, P7, PAL, PALM, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PFA, PFB, PGM, PICON, PICT, PIX, PLASMA, PM, PNG, PNG24, PNG32, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSD, PTIF, PWP, R, RAS, RGB, RGBA, RLA, RLE, ROSE, SCT, SFW, SGI, SHTML, STEGANO, SUN, SVG, TEXT, TGA, TIF, TIFF, TILE, TIM, TTF, TXT, UIL, UYVY, VDA, VICAR, VID, VIFF, VST, WBMP, WMF, WPG, X, XBM, XC, XCF, XPM, XV, XWD, Y, YUV
    Font Family - Name 	AvantGarde - AvantGarde-Book
    Font Family - Name 	AvantGarde - AvantGarde-BookOblique
    Font Family - Name 	AvantGarde - AvantGarde-Demi
    Font Family - Name 	AvantGarde - AvantGarde-DemiOblique
    Font Family - Name 	Bookman - Bookman-Demi
    Font Family - Name 	Bookman - Bookman-DemiItalic
    Font Family - Name 	Bookman - Bookman-Light
    Font Family - Name 	Bookman - Bookman-LightItalic
    Font Family - Name 	Courier - Courier
    Font Family - Name 	Courier - Courier-Bold
    Font Family - Name 	Courier - Courier-Oblique
    Font Family - Name 	Courier - Courier-BoldOblique
    Font Family - Name 	Helvetica - Helvetica
    Font Family - Name 	Helvetica - Helvetica-Bold
    Font Family - Name 	Helvetica - Helvetica-Oblique
    Font Family - Name 	Helvetica - Helvetica-BoldOblique
    Font Family - Name 	Helvetica Narrow - Helvetica-Narrow
    Font Family - Name 	Helvetica Narrow - Helvetica-Narrow-Oblique
    Font Family - Name 	Helvetica Narrow - Helvetica-Narrow-Bold
    Font Family - Name 	Helvetica Narrow - Helvetica-Narrow-BoldOblique
    Font Family - Name 	NewCenturySchlbk - NewCenturySchlbk-Roman
    Font Family - Name 	NewCenturySchlbk - NewCenturySchlbk-Italic
    Font Family - Name 	NewCenturySchlbk - NewCenturySchlbk-Bold
    Font Family - Name 	NewCenturySchlbk - NewCenturySchlbk-BoldItalic
    Font Family - Name 	Palatino - Palatino-Roman
    Font Family - Name 	Palatino - Palatino-Italic
    Font Family - Name 	Palatino - Palatino-Bold
    Font Family - Name 	Palatino - Palatino-BoldItalic
    Font Family - Name 	Times - Times-Roman
    Font Family - Name 	Times - Times-Bold
    Font Family - Name 	Times - Times-Italic
    Font Family - Name 	Times - Times-BoldItalic
    Font Family - Name 	Symbol - Symbol
    Mine doesnt.

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by aeternaleto View Post
    For instance a correct installation should show something like this:
    Code:
    imagick
    ImageMagick support	enabled
    Magick Backend 	ImageMagick
    ImageMagick version 	5.5.6
    PHP imagick version 	0.9.8
    Mine doesnt.
    Because Imagick/Magickwand is not compiled with Php.
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  5. #5
    Member
    Join Date
    Sep 2007
    Posts
    10

    Default

    Andy, I was trying to avoid compiling directly with php.

    I figured that something like this would go easy with just downloading the module, using phpize, configure etc and then just copying and pasting the extension into my php.ini.

    If I have to compile imagick with php do you know if any documentation i could use as a reference point?


    I appreciate your help with the matter.

  6. #6
    Registered User
    Join Date
    Feb 2006
    Posts
    2

    Default MagickWand for php problems

    Quote Originally Posted by aeternaleto View Post
    Andy, I was trying to avoid compiling directly with php.

    I figured that something like this would go easy with just downloading the module, using phpize, configure etc and then just copying and pasting the extension into my php.ini.

    If I have to compile imagick with php do you know if any documentation i could use as a reference point?


    I appreciate your help with the matter.

    I am also having issues getting this to install, I have tried adding --with-magickwand=/usr to the buldscript, but everytime it runs it removes the /home/cpeasyapache/src/php-5.2.4/ext/magicwand directory during the compile process.

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by aeternaleto View Post
    Andy, I was trying to avoid compiling directly with php.

    I figured that something like this would go easy with just downloading the module, using phpize, configure etc and then just copying and pasting the extension into my php.ini.
    Imagick/Magickwand must be compiled with Php.

    If I have to compile imagick with php do you know if any documentation i could use as a reference point?
    I am sorry, but no I don't know if any documentation. In any case, re-compile Php using:
    --with-magickwand=/usr/local/lib/ImageMagick
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  8. #8
    Registered User
    Join Date
    Feb 2006
    Posts
    2

    Angry

    Quote Originally Posted by ServerTune View Post
    Imagick/Magickwand must be compiled with Php.

    I am sorry, but no I don't know if any documentation. In any case, re-compile Php using:
    --with-magickwand=/usr/local/lib/ImageMagick
    The problem is that easyapache fetches and un-tars the php src over top of your modified src removing the ext/magicwand directory. I have also found that the CUSTOM_PHP_FLAGS="--with-magickwand=/usr" does not work.

    The sequence to get magickwand compiled into php requires that you extract the magickwand files into the /home/cpeasyapache/src/php-5.2.4/ext/ directory then you have to remove the current ./configure and rebuild it so that the --with-magickwand=/usr is recognized, ./buildconf --force

    I have attempted to recompile php by hand, but it dosnt work, apache refuses to restart and load after I attempt it.

Similar Threads & Tags
Similar threads

  1. Replies: 13
    Last Post: 03-18-2011, 02:24 AM
  2. ImageMagick and imagick
    By big_bull in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-15-2009, 07:10 PM
  3. installing php pecl "imagick"
    By Cemtey in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-26-2008, 01:14 AM
  4. pecl imagick problem
    By the_bobara in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-18-2008, 03:21 PM
  5. Imagick 5.5.7
    By M@RS in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 02-22-2004, 08:27 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube