Page 1 of 1

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

Posted: 2011-05-23T10:07:58-07:00
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.

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

Posted: 2011-05-24T05:55:42-07:00
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