Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member Mat-d-rat's Avatar
    Join Date
    Jul 2003
    Posts
    94

    Default Imagemagick and PHP

    I used the script /scripts/installimagemagick and from prompt command "convert -version" reports "Version: ImageMagick 6.4.8 2010-03-22 Q16 OpenMP http://www.imagemagick.org Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC" - All good so far. But I can't see how to get the "Imagick class" working in php. I see no .so files for imagemagic or imagick, what am I missing?
    ## # Mat # ##
    www.matmoo.com

  2. #2
    Member Mat-d-rat's Avatar
    Join Date
    Jul 2003
    Posts
    94

    Default

    Ok, look slike I need to run "pecl install Imagick"..
    BUT I can't as I have my temp partition set with noexec! I tried "mount -o remount,rw,exec,nosuid /temp", no errors, but mount -l shows it with noexec still, what next?
    ## # Mat # ##
    www.matmoo.com

  3. #3
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,766
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    The PECL module installer in WHM will setup the proper tmp paths for you.

    Recent versions of imagick have a bug that prevents successful installation when the installed version of ImageMagick is < 6.5.0. See for example:

    PECL :: Bug #17016 :: Compile Error
    PECL :: Bug #16863 :: Won't build with imagemagick version > 6.4.3 and < 6.5.0

    To get imagick installed one must either use version 2.2.2 of imagick or manually patch imagick_helpers.c in the imagick distribution.

    This document explains how to install imagick 2.2.2:

    How to install imagick for PHP | cPanel Admins

    Please note that you can ignore the yum install step as /scripts/installimagemagick already did that for you.
    Kenneth
    Product Development
    cPanel, Inc.

  4. #4
    Member Mat-d-rat's Avatar
    Join Date
    Jul 2003
    Posts
    94

    Default

    Had to enable proc_open in php to install (disabled it now will see what happens) but all running. THANK YOU!
    ## # Mat # ##
    www.matmoo.com

  5. #5
    Member Mat-d-rat's Avatar
    Join Date
    Jul 2003
    Posts
    94

    Default

    Well bum, I need version > 6.3.6 bad 6.2.8 is installed. Clues welcome
    ## # Mat # ##
    www.matmoo.com

  6. #6
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,766
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Mat-d-rat View Post
    Well bum, I need version > 6.3.6 bad 6.2.8 is installed. Clues welcome
    That's odd. What is your operating system and cPanel version number?

    Executing /scripts/installimagemagick on a test server resulted in ImageMagick 6.4.8-2 being installed. The version installed by that script should be from the tarball in /usr/local/cpanel/src/3rdparty/gpl

    EDIT:
    Actually after re-reading your initial post, you do have 6.4.8-2 of ImageMagick installed. What is telling you that you have 6.2.8 installed?
    Last edited by cpanelkenneth; 03-24-2010 at 09:01 AM.
    Kenneth
    Product Development
    cPanel, Inc.

  7. #7
    Member Mat-d-rat's Avatar
    Join Date
    Jul 2003
    Posts
    94

    Default

    Your right, I made an "asss"umption! The reason being is that I'm trying to use
    PHP: Imagick::distortImage - Manual whch requires 6.3.6 - yet I get "Fatal error: Call to undefined method ImagickDraw::distortImage()"... other functions and tests seem to work

    BTS Thanks
    Last edited by Mat-d-rat; 03-24-2010 at 09:38 AM. Reason: Thanks!
    ## # Mat # ##
    www.matmoo.com

  8. #8
    Member ReiJu's Avatar
    Join Date
    Mar 2008
    Posts
    57

    Default

    Hi,

    I'm sorry if my post here seems to hijack thread starter's problem. But since the howto is explained here, I think it's unwise to start another thread.

    I followed the howto from How to install imagick for PHP | cPanel Admins, and everything successfully installed without error (some warning though). Checked /usr/local/lib/php/extensions/no-debug-non-zts-20060613/, and imagick.so is installed there. I added the line extension="imagick.so" in /usr/lib/php.ini and in my per-site-php.ini (under public_html). To make sure, I restarted apache several times.

    But it's so odd, that I can't see any imagick or ImageMagick mentioned in phpinfo().

    Is there something that I might missed? I even recompile apache and php (easyapache), but nothing changed. Imagick still absent from phpinfo.

    Maybe I need to look at some other configs?

    Here's my system summary:
    RHEL 5.5
    Apache 2.2.15
    PHP 5.2.13 (suPHP)
    ImageMagick 6.2.8.0-4.el5_1.1 (from rpm -a), 6.5.7-10 (from convert --version)

    Thank you.
    --no sign of signature--

  9. #9
    Member
    Join Date
    Jun 2008
    Location
    Indiana, USA
    Posts
    104

    Default

    I've always just added the binary directory to the open_basedir directive and used the binaries directly myself.
    Michael Denney
    MDDHosting LLC
    http://www.mddhosting.com/

  10. #10
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2003
    Location
    Houston, TX
    Posts
    350
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    ImageMagick.org now releases current version CentOS 5 RPM's from:
    ImageMagick: Install from Binary Distribution

    Alas no CentOS 4 binaries still.

Similar Threads & Tags
Similar threads

  1. Imagemagick php?
    By dezomat in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 02-27-2010, 08:26 AM
  2. Cpanel, ImageMagick & PHP
    By Angel78 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-16-2009, 01:32 PM
  3. imagemagick API for php
    By firexit in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-26-2004, 03:17 PM
  4. imagemagick & php
    By cmsscrui in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-06-2004, 07:45 PM
  5. imagemagick help
    By Mutt2 in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 04-10-2003, 05:19 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube