Php – ImageMagick installed in Ubuntu Server which is found in Php.info, but not working

imagemagickPHP

I have installed ImageMagick php library in my ubuntu server using the following command:

apt-get install php5-gd php5-idn php-pear php5-imagick

I could find the ImageMagick module shown in php.info file, but when I tried to use it's function in my php program, it doesn't seems to be working and even I don't have any errors too.

Please Help, I am a new user.

Thanks in advance

Best Answer

Install php5-cli

apt-get install php5-cli

Test php5-imagick:

php /usr/share/doc/php5-imagick/examples/polygon.php > ~/polygon.png