Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imagick hasn't been installed properly #14

Closed
StalkAlex opened this issue Feb 22, 2017 · 5 comments
Closed

Imagick hasn't been installed properly #14

StalkAlex opened this issue Feb 22, 2017 · 5 comments
Assignees

Comments

@StalkAlex
Copy link

StalkAlex commented Feb 22, 2017

Here I found working way to install

RUN set -x \
    && apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS imagemagick-dev libtool \
    && pecl install imagick \
    && docker-php-ext-enable imagick \
    && apk add --no-cache --virtual .imagick-runtime-deps imagemagick \
    && apk del .phpize-deps

docker-library/php#105

@schmunk42
Copy link
Member

Is this about the missing PNG extension for ImageMagick? See also https://git.hrzg.de/dmstr/docker-php-yii2/builds/77762

I tried to build an image with the above code, but it failed. Were you able to build a PHP alpine locally?

CC: @handcode

@StalkAlex
Copy link
Author

StalkAlex commented Feb 23, 2017

Not sure if missing png extension was a problem, but it was missing completely from phpinfo, it was not loaded at all. Then I tried to add it simply via RUN docker-php-ext-install imagick and RUN docker-php-ext-enable imagick, both commands said strangely name is unknown. We're using mPdf extension.

@schmunk42 schmunk42 self-assigned this Mar 7, 2017
@bscheshirwork
Copy link

@StalkAlex
Copy link
Author

StalkAlex commented Mar 21, 2017

@bscheshirwork I found it already, thanks. See question text.

@schmunk42
Copy link
Member

Available in alpine build https://github.com/dmstr/docker-php-yii2/releases/tag/7.1-fpm-3.0-rc1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants