How does one install imagick extensions in PHP?

Source: Internet
Author: User
Tags imagemagick
Phpinfo has successfully loaded the imagick extension, but I use get_extension_funcs (& #039; imagick & #039;); but there is no way. I followed the following steps: first, use yum to install {code ...} install the ImageMagick-6.5.4 successfully and then install the php extension {code ...} above press... phpinfo has successfully loaded the imagick extension, but I use get_extension_funcs('imagick');But there is no way.
As follows:
First, use yum to install

yum install -y ImageMagick ImageMagick-devel

Successfully installed ImageMagick-6.5.4
Then install php Extension

phpize ./configure --with-php-config=/usr/local/php5.5/bin/php-config --with-imagick=/usr/make && make install

All of the above is successful, but this method is not available when I use the imagick extension.
Last useget_extension_funcs('imagick');Function to view the method in this extension, but found nothing?

Why?
Environment
Centos 6.5 + nginx1.4.7+php5.5

Reply content:

Phpinfo has successfully loaded the imagick extension, but I useget_extension_funcs('imagick');But there is no way.
As follows:
First, use yum to install

yum install -y ImageMagick ImageMagick-devel

Successfully installed ImageMagick-6.5.4
Then install php Extension

phpize ./configure --with-php-config=/usr/local/php5.5/bin/php-config --with-imagick=/usr/make && make install

All of the above is successful, but this method is not available when I use the imagick extension.
Last useget_extension_funcs('imagick');Function to view the method in this extension, but found nothing?

Why?
Environment
Centos 6.5 + nginx1.4.7+php5.5

You may need to runphp -i |grep 'extension_dir'Check whether the so file is successfully compiled in the corresponding directory.
Then runphp -i |grep 'ini'Locate the ini configuration file and add it.

[Imagick] extension = so file name

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.