PHP
downloads | documentation | faq | getting help | mailing lists | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Installation> <Introduction
Last updated: Fri, 14 Nov 2008

view this page in

Installation/Configuration

Sommaire

Pré-requis

Configuration nécessaire pour l'installation sous Windows

Les binaires sont disponibles depuis http://imagemagick.org/ ; vous pouvez ainsi charger cette extension sous Windows sans devoir compiler quoi que ce soit.

Configuration nécessaire pour l'installation sous les autres plateformes

PHP >= 5.1.3 et ImageMagick >= 6.2.4 sont nécessaires. Le nombre de formats supportés par Imagick est totalement dépendant de ceux supportés par votre installation ImageMagick. Par exemple, Imagemagick a besoin de ghostscript pour effectuer les opérations relatives aux PDF.



Installation> <Introduction
Last updated: Fri, 14 Nov 2008
 
add a note add a note User Contributed Notes
Installation/Configuration
nonproffessional at clockworkgeek dot com
16-Oct-2008 12:09
I too had the error "Please provide a path to MagickWand-config or Wand-config program." when installing on linux (in this case CentOS aka Red Hat).

The simple solution was to ensure "ImageMagick-devel" and NOT "ImageMagick" package was in place. Next comes the standard command:
pecl install imagick

Lastly, and as per the otherwise flawless instructions, edit php.ini to include:
extension=imagick.so
marcel dot ouellette at gmail dot com
02-Sep-2008 07:38
For anyone attempting to install the binaries on windows xp, don't waste your time.  You'll need to install this on windows 2003 Server (and up) or Windows Vista since there are dependences (msvcr80.dll) that will require it.
colnector is from domain colnect.com
13-Jul-2008 02:10
Windows installation is a bit more tricky since "pecl install imagick" does NOT work properly.

Here's how I installed it:
1/ Install ImageMagick software http://www.imagemagick.org/script/binary-releases.php#windows
2/ Download pecl-5.2-dev.zip (choose the version relevant to your PHP) from http://snaps.php.net/
3/ Copy php_imagick.dll from the archive you've downloaded to your PHP extention folder.
4/ Add the following line to php.ini (in the exntentions section):
extension=php_imagick.dll
5/ Restart your server
6/ Try the example script to see all went well

Good luck :)
james dot ellis at gmail dot com
09-Jun-2008 03:21
To install the latest Imagick from PECL on an Ubuntu variant system, assuming your already have PHP5 and Apache2 installed, do the following.
You need your root password, have sudo privileges and be able to run commands from a shell (e.g via Konsole)

1. $ sudo aptitude install php-pear imagemagick php5-dev libmagick9-dev
2. do *not* install php5-imagick as you will install a later version from PECL
3. libmagick9-dev may install a whole load of dependencies. This package provides the Wand-config program and avoids the error on pecl install "configure: error: not found. Please provide a path to MagickWand-config or Wand-config program."
4. $ sudo pecl install Imagick
5. Hit enter to autodetect the "Imagemagick installation" prefix

You should see some compilation messages, noting any errors that stop the Imagick build.

When completed successfully, the following console message should appear

Build process completed successfully
Installing '/usr/lib/php5/20060613+lfs/imagick.so'
install ok: channel://pecl.php.net/imagick-2.2.0b2

Now for loading it when the web server starts/restarts
6. $ sudo kate /etc/php5/apache2/conf.d/imagick.ini
7. enter extension=imagick.so and save
8. $ sudo apache2ctl configtest
9. $ sudo apache2ctl restart

Notes:
* You can use any apt client e.g apt-get to install packages
* If you want beta Imagick then:
$ sudo pear config-set preferred_state beta
* You can now upgrade Imagick as new versions are made available in PECL the same way PEAR updates are handled.

Hope this helps some of you...

Installation> <Introduction
Last updated: Fri, 14 Nov 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites