Jan 7, 2013

Cài đặt Image magick php trên Centos 5.7


Tôi đang thực hiện trên Centos cài apache 2, php 5.3, còn nếu là php ở phiên bản nhỏ hơn vui lòng nâng cấp lên phiên bản 5.3 theo hướng dẫn tại đây

 Nếu chưa install php-devel thì chạy lệnh:

yum --enablerepo=webtatic install  php-devel

------------------------------------------------------------------------------------------------------------

yum --enablerepo=webtatic install  php-pear gcc

yum enablerepo=webtatic install ImageMagick ImageMagick-devel

pecl install imagick

Thêm dòng sau vào cuối file /etc/php.ini:

extension=imagick.so

Restart lại web server

service httpd restart


No comments:

Post a Comment