# /usr/local/bin/docker-php-ext-enable: 108: /usr/local/bin/docker-php-ext-enable: cannot create /conf.d/docker-php-ext-mysqli.ini: Directory nonexistent

**URL:** <https://discuss.circleci.com/t/usr-local-bin-docker-php-ext-enable-108-usr-local-bin-docker-php-ext-enable-cannot-create-conf-d-docker-php-ext-mysqli-ini-directory-nonexistent/26560>\
**Category:** Build Environment\
**Created:** [November 16, 2018, 12:38pm UTC](https://discuss.circleci.com/t/usr-local-bin-docker-php-ext-enable-108-usr-local-bin-docker-php-ext-enable-cannot-create-conf-d-docker-php-ext-mysqli-ini-directory-nonexistent/26560 "2018-11-16T12:38:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![NuclearPotato](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@NuclearPotato](https://discuss.circleci.com/u/NuclearPotato)\
**Post date:** [November 16, 2018, 12:38pm UTC](https://discuss.circleci.com/t/usr-local-bin-docker-php-ext-enable-108-usr-local-bin-docker-php-ext-enable-cannot-create-conf-d-docker-php-ext-mysqli-ini-directory-nonexistent/26560/1 "2018-11-16T12:38:19Z")

</div>

Since this morning I have been receiving this error:  
/usr/local/bin/docker-php-ext-enable: 108: /usr/local/bin/docker-php-ext-enable: cannot create /conf.d/docker-php-ext-mysqli.ini: Directory nonexistent

I have been using my current config.yml for the past three months without any issues.

This is my current config:

```
jobs:
   build:
     docker:
     - image: circleci/php
     - image: circleci/mysql:5.7
       environment:
       - MYSQL_DATABASE=testing
       - MYSQL_USER=root
       - MYSQL_ROOT_HOST=%
       - MYSQL_HOST=127.0.0.1
   steps:
   - checkout
   - run: sudo docker-php-ext-install mysqli pdo pdo_mysql
   - restore_cache:
      keys:
      - v1-dependencies-{{ checksum "composer.json" }}
      - v1-dependencies-
   - run: composer install --no-interaction --prefer-dist --optimize-autoloader
   - run: php artisan migrate --env=testing --force
   - run: php artisan key:generate --env=testing
   - run: php artisan passport:install --env=testing
   - save_cache:
      paths:
      - ./vendor
    key: v1-dependencies-{{ checksum "composer.json" }}
    - run: vendor/bin/phpunit

   deploy:
      machine:
        enabled: true
        steps:
        - run:
        command: |
            ssh -v $DROPLET_USER@$DROPLET_IP "eval \`ssh-agent\`; ssh-add ~/.ssh/deploy; cd /opt/scripts; ./deploy.sh"

workflows:
  version: 2
  build-and-deploy:
    jobs:
    - build
   - deploy:
      requires:
      - build
      filters:
        branches:
          only: master
```

---

<div class="post-metadata">

**Author:** ![KyleTryon](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/kyletryon/32/9977_2.png) [@KyleTryon](https://discuss.circleci.com/u/KyleTryon)\
**Post date:** [November 16, 2018, 5:55pm UTC](https://discuss.circleci.com/t/usr-local-bin-docker-php-ext-enable-108-usr-local-bin-docker-php-ext-enable-cannot-create-conf-d-docker-php-ext-mysqli-ini-directory-nonexistent/26560/2 "2018-11-16T17:55:31Z")

</div>

Hello,  
This would suggest something has been updated in the official PHP images. We will investigate and see if there is anything we can implement on our end.

For the time being, what we would recommend is opening the last successfully ran project \>\> Select the drop down for the “Spin-up” step \>\> Locate the SHA of the php image used.

It will looks something like `circleci/php@sha256:XXXXXXXXXXXXXXXXXXXXXX`

A Github issue has been opened: [https://github.com/docker-library/php/issues/750](https://github.com/docker-library/php/issues/750)

---

<div class="post-metadata">

**Author:** ![gayanhewa](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/gayanhewa/32/19760_2.png) [@gayanhewa](https://discuss.circleci.com/u/gayanhewa)\
**Post date:** [November 17, 2018, 5:13pm UTC](https://discuss.circleci.com/t/usr-local-bin-docker-php-ext-enable-108-usr-local-bin-docker-php-ext-enable-cannot-create-conf-d-docker-php-ext-mysqli-ini-directory-nonexistent/26560/3 "2018-11-17T17:13:47Z")

</div>

I ran into the same issue, adding the -E flag to the sudo run commands resolved the command steps that failed.

- run: sudo -E docker-php-ext-install pdo pdo\_mysql
- run: sudo -E docker-php-ext-install bcmath && sudo docker-php-ext-enable bcmath

---

<div class="post-metadata">

**Author:** ![AjitKamath](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@AjitKamath](https://discuss.circleci.com/u/AjitKamath)\
**Post date:** [November 19, 2018, 4:58pm UTC](https://discuss.circleci.com/t/usr-local-bin-docker-php-ext-enable-108-usr-local-bin-docker-php-ext-enable-cannot-create-conf-d-docker-php-ext-mysqli-ini-directory-nonexistent/26560/4 "2018-11-19T16:58:01Z")

</div>

saved my day !

---

<div class="post-metadata">

**Author:** ![linusx](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/linusx/32/21988_2.png) [@linusx](https://discuss.circleci.com/u/linusx)\
**Post date:** [November 28, 2018, 6:48pm UTC](https://discuss.circleci.com/t/usr-local-bin-docker-php-ext-enable-108-usr-local-bin-docker-php-ext-enable-cannot-create-conf-d-docker-php-ext-mysqli-ini-directory-nonexistent/26560/5 "2018-11-28T18:48:58Z")

</div>

Saved me hours of debugging. Thanks for finding that.

---

<div class="post-metadata">

**Author:** ![gbrunacci](https://avatars.discourse-cdn.com/v4/letter/g/f4b2a3/32.png) [@gbrunacci](https://discuss.circleci.com/u/gbrunacci)\
**Post date:** [November 28, 2018, 9:25pm UTC](https://discuss.circleci.com/t/usr-local-bin-docker-php-ext-enable-108-usr-local-bin-docker-php-ext-enable-cannot-create-conf-d-docker-php-ext-mysqli-ini-directory-nonexistent/26560/6 "2018-11-28T21:25:42Z")

</div>

This did the job!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [February 26, 2019, 9:25pm UTC](https://discuss.circleci.com/t/usr-local-bin-docker-php-ext-enable-108-usr-local-bin-docker-php-ext-enable-cannot-create-conf-d-docker-php-ext-mysqli-ini-directory-nonexistent/26560/7 "2019-02-26T21:25:44Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
