The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Imagick installation problem

Discussion in 'General Discussion' started by aeternaleto, Sep 18, 2007.

  1. aeternaleto

    aeternaleto Member

    Joined:
    Sep 5, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    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. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    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`
     
  3. aeternaleto

    aeternaleto Member

    Joined:
    Sep 5, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    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. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    Because Imagick/Magickwand is not compiled with Php.
     
  5. aeternaleto

    aeternaleto Member

    Joined:
    Sep 5, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    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. gardnerscot

    gardnerscot Registered

    Joined:
    Feb 3, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    MagickWand for php problems


    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. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    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
     
  8. gardnerscot

    gardnerscot Registered

    Joined:
    Feb 3, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
Loading...

Share This Page