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

Failed loading /usr/lib/php/20160303/xdebug.so: Error loading shared library /usr/lib/php/20160303/xdebug.so: No such file or directory #1

Closed
marcelobfonseca opened this issue Jun 27, 2019 · 3 comments

Comments

@marcelobfonseca
Copy link

I'm getting the message

Failed loading /usr/lib/php/20160303/xdebug.so: Error loading shared library /usr/lib/php/20160303/xdebug.so: No such file or directory

when i attempt to run the Dockerfile

@angristan
Copy link
Owner

How do you run it?

@marcelobfonseca
Copy link
Author

marcelobfonseca commented Jul 1, 2019

docker build . Seems to be failing to run the RUN pecl install xdebug . Searching around i managed to install xdebug using php:7.2-alpine image.

FROM php:7.2-alpine

RUN apk add --no-cache $PHPIZE_DEPS \
    && pecl install xdebug-2.6.0 

RUN printf "xdebug.remote_enable=1\n" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
         "xdebug.coverage_enable=1\n" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
         "xdebug.idekey=\"PHPSTORM\"\n" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
         "xdebug.remote_port=9000\n" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
         "xdebug.remote_host=host.docker.internal" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini

RUN docker-php-ext-enable xdebug 

@angristan
Copy link
Owner

That's really weird, the image is building for me on both my macbook and linux laptop.

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

2 participants