CHH / heroku-buildpack-php

A more advanced PHP buildpack for Heroku, inspired by the Node.js buildpack
MIT License
265 stars 155 forks source link

ImageMagick ext not working #153

Open dubcanada opened 10 years ago

dubcanada commented 10 years ago

Hello,

I am trying to get ImageMagick working, but it keeps failing with

PHP Warning:  PHP Startup: Unable to load dynamic library 
'/app/vendor/php/lib/php/extensions/no-debug-non-zts-20121212/imagick.so' - 
libMagickWand.so.2: cannot open shared object file: No such file or directory in 
Unknown on line 0
hotmeteor commented 9 years ago

+1

Jcantarero commented 9 years ago

yum remove ImageMagick pecl uninstall imagick

vim /etc/php.ini remove this "extension=imagick.so" or... cd /etc/php.d/ rm imagick.ini

service nginx stop && service php-fpm stop && service php-fpm start && service nginx start o service httpd restart

yum install ImageMagick ImageMagick-devel pecl install imagick echo extension=imagick.so >> /etc/php.ini service nginx stop && service php-fpm stop && service php-fpm start && service nginx start or service httpd restart

php -m | grep imagick imagick

Perfect!

wshobson commented 9 years ago

+1