Docker PHP-FPM 7 + Yii 2.0
After Docker pull daocloud.io/php:7.0.2-fpm, Yii
In addition to the mbstring not initialized installation, Imagick is not installed well.
Installation method:
1 Download the latest version of the source code from Https://pecl.php.net/package/imagick.
After decompression:
makemake install
Because the default mirroring system is Debian 8, use the following command:
apt-get install libmagickwand-dev libmagickcore-dev
Load the dependency package first.
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20151012/header files: /usr/local/include/php/
The last two lines suggest expanding the location of the installation. It needs to be written into php.ini and restarted php-fpm to take effect.
If you do not have a/usr/local/etc/php/php.ini, you can copy it here first:
/usr/src/php/php.ini-development/usr/src/php/php.ini-production
This will solve:
extensionwithorextensionwithis required.
'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
'). Text (i)); }; $numbering. FadeIn (1700); }); });
The above describes the Docker installation PHP7 Imagick, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.