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

APC doesn't install properly on 5.6 #544

Closed
abductedMind opened this issue Dec 16, 2017 · 1 comment
Closed

APC doesn't install properly on 5.6 #544

abductedMind opened this issue Dec 16, 2017 · 1 comment

Comments

@abductedMind
Copy link

abductedMind commented Dec 16, 2017

If you run apt-get install php-apc you will get Makefile:214: recipe for target 'apc_zend.lo' failed.

How do I get APU working with this set of docker configurations for PHP 5.6? apt-get install php-apc runs to the end without error but this method doesn't result in a properinstall of apc cache.

Releated:
#68

@yosifkit
Copy link
Member

Installing apc from Debian apt-repos does not work (we have a fix to prevent them from installing in #542) since it is compiled and created for the Debian provided php. The php we provide in the images is as close to upstream releases as possible, so it is built from source. If you need any extensions then you have to use the provided docker-php-ext-* scripts in the images and/or pecl (as noted in the Docker Hub docs and #68).

FROM php:5.6
# this a version noted as working for php 5.6 on #68
RUN pecl install apcu-4.0.11 && docker-php-ext-enable apcu
# php -m | grep apcu
# apcu

@tianon tianon closed this as completed Dec 19, 2017
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