Imagemagic image processing software and extension module, how to add extended modules in PHP configuration

Source: Internet
Author: User
Tags imagemagick

1. Install imagemagic image Software

Imagemagic focuses on performance, reducing bugs, and providing stable APIs and ABI

Installation method:

Tar zxf ImageMagick.tar.gz

CD imagemagick-6.5.1-2/

./configure

Make

Make install

Note: If make is wrong, the workaround: Yum install-y perl-cpan or Perl-devel

The error should pay attention to see the prompt!

2. Install imageick PHP Extension Plugin

Installing the Imageick extension requires installing the imagemagic image installation first

Installation method:

Unpacking software, entering the directory

Executive/usr/local/php/bin/phpize

./configure--with-php-config=/usr/local/php/bin/php-config

Make

Make install


Adding modules to the php.ini configuration

Vim php.ini

Found in the configuration file

; extension_dir= "./"

Revision changed to

Extension_dir= "Add Module path"

Then add the following to the end of the configuration file

Extension = memcache.so

Extension = pdo_mysql.so

Extension = imagick.so

Save, exit

Restart to make it effective




This article is from the "topspeed_king" blog, make sure to keep this source http://mylinuxlife.blog.51cto.com/4706737/1682511

Imagemagic image processing software and extension module, how to add extended modules in PHP configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.