Uncategorized

Installing ImageMagick on Media Temple (dv)

UPDATE: 2/10/11  I just found this entry again while Googling how to reinstall ImageMagick after moving from Media Temple (dv) 3.5 to (dv) 4.  The funny thing is that I had totally forgotten that I had written this entry.  I’ve updated the entry with some adjustments that I made to the procedure.


This post won’t mean much to most of you, but maybe it’ll be helpful to someone trying to install ImageMagick on (dv) 3.5 or (dv) 4.

I spent quite a bit of time trying to researching on the internet on how to install ImageMagick on MediaTemple (dv) for use with MovableType.  Much of what I used came from this article: How do I upgrade ImageMagick?

First, install developer tools on MediaTemple within the admin panel and allow root access.

I logged into the sever using SSH as the root.

I had intially used yum to install ImageMagick, but it installed a pretty old version that I needed to remove using:
yum remove ImageMagick

I downloaded a new version of ImageMagick, using:
wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz

Decompress the file and change to the directory.
tar -zxvf ImageMagick*.tar.gz
cd ImageMagick*

Once in the directory, I compiled and installed ImageMagick:
./configure
make
make install

Tested ImageMagick (shouldn’t report an error):
convert logo: logo.gif
This didn’t seem to do anything for me, but didn’t report an error.

For me, after doing this, MovableType was still not recognizing ImageMagick but I found out from the MovableType forums that I needed to compile PerlMagick.

Remember the ImageMagick source tarball has PerlMagick (the perl modules and libraries MT requires) bundled with it. So once ImageMagick is installed, navigate to the PerlMagick directory inside of the source tarball and run as root:

I entered the PerlMagick directory which was inside the ImageMagick directory and entered the following commands:
perl Makefile.PL
make
make test
make install

The make test showed some errors.  It seems that PerlMagick was not finding the ImageMagick files.
I typed the following and then recompiled.
echo /usr/local/lib >> /etc/ld.so.conf.d/ImageMagick.conf
ldconfig

I ran the make test and the make install and this time it worked!

Previous Post Next Post

You Might Also Like

8 Comments

  • Reply Chuck Norton July 8, 2011 at 1:49 pm

    I just followed this w/ a few problems….
    Then I found a much easier method! http://wiki.mediatemple.net/w/(dv)_3.5:Install_ImageMagick (works on 4.0 also).
    What do you think?

  • Reply MT July 8, 2011 at 4:28 pm

    If that works, I’d go with the mediatemple version. There wasn’t a wiki entry at the time that I tried this initially so I just cobbled together ideas from Googling. The main issue I had was that YUM was installing an old version of ImageMagick.

  • Reply Shea June 19, 2013 at 6:57 pm

    Thanks for your help! I want to point out that the new dv 4.0 servers have yum installed by default. so it’s as easy as using putty to access server via ssh, login as root and run the following command:
    yum install Imagemagick
    success in about one minute without any hard work. Still trying to find out if I need to edit php.ini but so far it seems to work without adding the extension (it may already be added??)

  • Reply Shea June 20, 2013 at 10:13 pm

    also just in case – the wiki article on mt is gone but support sent me a screenshot of it. doesn’t show everything but here it is for the record.
    mirror one https://www.evernote.com/shard/s268/sh/2ad6e100-8947-4706-b439-ee2fd59c2847/d0458907c3e19f28dbe75e21bdd608fa
    mirror two http://imgur.com/7ydswXp

  • Reply MT June 21, 2013 at 12:16 pm

    @Shea thanks for your comments!

  • Reply Dylan Macak August 27, 2013 at 11:36 am

    I just talked to Media Temple regarding this, and they send me URL of this page. So this is almost official I guess…

  • Reply MT September 17, 2013 at 10:03 am

    Wow, that’s interesting. Thanks for letting me know!

  • Reply Delford September 17, 2013 at 4:12 pm

    I have ImageMagick install on my MT DV, but I can’t seem to make the PHP extension load. Any ideas? Thanks!

  • Leave a Reply