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
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!
8 Comments
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?
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.
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??)
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
@Shea thanks for your comments!
I just talked to Media Temple regarding this, and they send me URL of this page. So this is almost official I guess…
Wow, that’s interesting. Thanks for letting me know!
I have ImageMagick install on my MT DV, but I can’t seem to make the PHP extension load. Any ideas? Thanks!