[solved]When I run my php script in console, I have an error

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
SPolischook
Posts: 4
Joined: 2011-05-22T13:01:57-07:00
Authentication code: 8675308

[solved]When I run my php script in console, I have an error

Post by SPolischook »

Code: Select all

Fatal error:  Class 'Imagick' not found 
I use command

Code: Select all

/usr/bin/php5 /var/www/prestai/resize-images.php
Maybe I need write the full path, but I haven`t /usr/bin/Imagic or something like this.
Last edited by SPolischook on 2011-05-24T05:58:34-07:00, edited 1 time in total.
SPolischook
Posts: 4
Joined: 2011-05-22T13:01:57-07:00
Authentication code: 8675308

Re: When I run my php script in console, I have an error

Post by SPolischook »

The solution is vary simpe - enough to install php5-imagick package. In Ubuntu I use the command

Code: Select all

sudo apt-get install php5-imagick
Post Reply