docker install php7 imagick

WBOY
Release: 2016-07-28 08:29:31
Original
2480 people have browsed it

docker php-fpm 7 + yii 2.0
docker pull daocloud.io/php:7.0.2-fpm later, yii
In addition to mbstring not being initialized and installed, imagick is not installed either.

Installation method:
1 Download the latest version of the source code from https://pecl.php.net/package/imagick.
After decompression:

<code>phpize
./configure 

<span>make</span> && <span>make</span> install</code>
Copy after login

Because the default mirror system is debian 8, use the following command:

<code>apt<span>-get</span> install libmagickwand<span>-dev</span> libmagickcore<span>-dev</span></code>
Copy after login

Install the dependency package first.

<code>Installing shared extensions:     /usr/<span>local</span>/lib/php/extensions/no<span>-debug</span><span>-non</span><span>-zts</span><span>-</span><span>20151012</span><span>/</span>
Installing <span>header</span> files:          /usr/<span>local</span>/include/php<span>/</span></code>
Copy after login

The last two lines indicate the location of the expansion installation. You need to write it into php.ini and restart php-fpm to take effect.
If you don’t have /usr/local/etc/php/php.ini yet, you can copy it from here first:

<code>/usr/src/php/php<span>.ini</span>-development
/usr/src/php/php<span>.ini</span>-production</code>
Copy after login

This will solve the problem:

<code>Invalid Configuration – yii\base\InvalidConfigException

Either GD PHP <span>extension</span><span>with</span> FreeType support <span>or</span> ImageMagick PHP <span>extension</span><span>with</span> PNG support <span>is</span> required.</code>
Copy after login
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above introduces the docker installation of php7 imagick, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!