# \#php

**URL:** https://discuss.circleci.com/tag/php/58.md

[Latest](https://discuss.circleci.com/latest.md) · [Categories](https://discuss.circleci.com/categories.md) · [Tags](https://discuss.circleci.com/tags.md)

---

## [Docker-php-ext-install error with cimg/php:8.3](https://discuss.circleci.com/t/docker-php-ext-install-error-with-cimg-php-8-3/54420)

<div class="topic-metadata">

**Author:** [@cleverrocks](https://discuss.circleci.com/u/cleverrocks)\
**Replies:** 6\
**Last updated:** [March 5, 2026, 9:48am UTC](https://discuss.circleci.com/t/docker-php-ext-install-error-with-cimg-php-8-3/54420 "2026-03-05T09:48:36Z")

</div>

Is CircleCI blocked by PHP Mirrors? I am getting 503 when installing the docker-php-ext-install. @circleci-community please help in understanding that I am able to call the URL https://www.php.net/distributions/php-8.3.…

---

## [Outdated blackfire-php package (v1.92.57) in Ubuntu images incompatible with PHP 8.5](https://discuss.circleci.com/t/outdated-blackfire-php-package-v1-92-57-in-ubuntu-images-incompatible-with-php-8-5/54329)

<div class="topic-metadata">

**Author:** [@shahzaibm10c](https://discuss.circleci.com/u/shahzaibm10c)\
**Replies:** 0\
**Last updated:** [January 12, 2026, 12:06pm UTC](https://discuss.circleci.com/t/outdated-blackfire-php-package-v1-92-57-in-ubuntu-images-incompatible-with-php-8-5/54329 "2026-01-12T12:06:12Z")

</div>

When installing blackfire-php via apt in CircleCI Ubuntu-based images with PHP 8.5, the installation fails because the available package version (1.92.57) doesn’t support PHP 8.5’s ABI version (20250925). Environment De…

---

## [Requesting Feedback and Testers for the PHP Convenience Image](https://discuss.circleci.com/t/requesting-feedback-and-testers-for-the-php-convenience-image/44364)

<div class="topic-metadata">

**Author:** [@jalex](https://discuss.circleci.com/u/jalex)\
**Replies:** 0\
**Last updated:** [June 8, 2022, 11:12pm UTC](https://discuss.circleci.com/t/requesting-feedback-and-testers-for-the-php-convenience-image/44364 "2022-06-08T23:12:54Z")

</div>

EDIT: Thank you everyone for testing this image for us. These images will now be pulled down and the same functionality being tested here will be available on the standard image tags Hi Everyone, A much requested featu…

---

## [November 2021 and on cimg/PHP Changes](https://discuss.circleci.com/t/november-2021-and-on-cimg-php-changes/42159)

<div class="topic-metadata">

**Author:** [@FelicianoTech](https://discuss.circleci.com/u/FelicianoTech)\
**Replies:** 2\
**Last updated:** [April 24, 2022, 6:57pm UTC](https://discuss.circleci.com/t/november-2021-and-on-cimg-php-changes/42159 "2022-04-24T18:57:21Z")

</div>

Hey Everyone! For anyone using the cimg/php Convenience Images, I wanted to share a change on how PHP is made available in the images. We use to use an Ubuntu PPA to install the PHP versions. This means PHP itself and m…

---

## [Cimg/php Mismatched Tags Issue](https://discuss.circleci.com/t/cimg-php-mismatched-tags-issue/42179)

<div class="topic-metadata">

**Author:** [@FelicianoTech](https://discuss.circleci.com/u/FelicianoTech)\
**Replies:** 0\
**Last updated:** [December 7, 2021, 8:30pm UTC](https://discuss.circleci.com/t/cimg-php-mismatched-tags-issue/42179 "2021-12-07T20:30:05Z")

</div>

There are several cimg/php tags/releases that contain the wrong version of PHP. The affected images are from before November 2021. In each case, the contained PHP version is one patch version ahead or behind. For example…

---

## [Can you help test a PHP Convenience Image?](https://discuss.circleci.com/t/can-you-help-test-a-php-convenience-image/41982)

<div class="topic-metadata">

**Author:** [@FelicianoTech](https://discuss.circleci.com/u/FelicianoTech)\
**Replies:** 0\
**Last updated:** [November 18, 2021, 2:59am UTC](https://discuss.circleci.com/t/can-you-help-test-a-php-convenience-image/41982 "2021-11-18T02:59:35Z")

</div>

Hey everyone! Some of you may have noticed that we haven’t published a PHP image for a few new releases now. We’re a bit behind due to an issue we’re having with the prepacked PHP releases we were using. We’re switching…

---

## [Your github oauth token for github.com contains invalid characters](https://discuss.circleci.com/t/your-github-oauth-token-for-github-com-contains-invalid-characters/39798)

<div class="topic-metadata">

**Author:** [@dschmidtadv](https://discuss.circleci.com/u/dschmidtadv)\
**Replies:** 1\
**Last updated:** [April 18, 2021, 3:26pm UTC](https://discuss.circleci.com/t/your-github-oauth-token-for-github-com-contains-invalid-characters/39798 "2021-04-18T15:26:17Z")

</div>

I am getting this error when I try to log into Github using composer: Your github oauth token for github.com contains invalid characters I

---

## [New PHP Convenience Image Public Beta](https://discuss.circleci.com/t/new-php-convenience-image-public-beta/33514)

<div class="topic-metadata">

**Author:** [@FelicianoTech](https://discuss.circleci.com/u/FelicianoTech)\
**Replies:** 4\
**Last updated:** [November 2, 2020, 9:46pm UTC](https://discuss.circleci.com/t/new-php-convenience-image-public-beta/33514 "2020-11-02T21:46:33Z")

</div>

Hey Everyone, For those who don’t know, we at CircleCI maintain a fleet of Docker images, which we call Convenience Images, for various languages and databases. These images are designed to run your CI environment. The…

---

## [CircleCI unable to connect to database](https://discuss.circleci.com/t/circleci-unable-to-connect-to-database/37909)

<div class="topic-metadata">

**Author:** [@liaogz82](https://discuss.circleci.com/u/liaogz82)\
**Replies:** 3\
**Last updated:** [October 28, 2020, 1:19pm UTC](https://discuss.circleci.com/t/circleci-unable-to-connect-to-database/37909 "2020-10-28T13:19:22Z")

</div>

I am unable to do a simple migration in CircleCI. It keep saying it cannot connect to database #!/bin/bash -eo pipefail bin/cake migrations migrate using migration paths - /var/www/html/config/Migrations using seed pa…

---

## [How to write php function that receive 3 in var and print it from the large to small number without array?](https://discuss.circleci.com/t/how-to-write-php-function-that-receive-3-in-var-and-print-it-from-the-large-to-small-number-without-array/37812)

<div class="topic-metadata">

**Author:** [@STOPTECHPRO](https://discuss.circleci.com/u/STOPTECHPRO)\
**Replies:** 0\
**Last updated:** [October 16, 2020, 9:13pm UTC](https://discuss.circleci.com/t/how-to-write-php-function-that-receive-3-in-var-and-print-it-from-the-large-to-small-number-without-array/37812 "2020-10-16T21:13:27Z")

</div>

i need to write a php function that receive 3 in var and print it from the large to small number without array

---

## [Please explain multiple images in an executor](https://discuss.circleci.com/t/please-explain-multiple-images-in-an-executor/36572)

<div class="topic-metadata">

**Author:** [@rozling](https://discuss.circleci.com/u/rozling)\
**Replies:** 1\
**Last updated:** [July 8, 2020, 7:08pm UTC](https://discuss.circleci.com/t/please-explain-multiple-images-in-an-executor/36572 "2020-07-08T19:08:55Z")

</div>

I can’t wrap my head around the concept of having multiple images in the same executor. Is there somewhere in the docs that explains what functionality this enables / doesn’t enable? Or to put it another way, what’s th…

---

## [Received 'interrupt' signal](https://discuss.circleci.com/t/received-interrupt-signal/32589)

<div class="topic-metadata">

**Author:** [@thomas-alrek](https://discuss.circleci.com/u/thomas-alrek)\
**Replies:** 11\
**Last updated:** [October 1, 2019, 11:03am UTC](https://discuss.circleci.com/t/received-interrupt-signal/32589 "2019-10-01T11:03:23Z")

</div>

Hello. I have an urgent problem that I need help resolving. We have been deploying our PHP based apps without any troubles for a while now. Today, we suddenly started to get a strange error message in our composer dep…

---

## [Error : Git command not found](https://discuss.circleci.com/t/error-git-command-not-found/31204)

<div class="topic-metadata">

**Author:** [@adil26](https://discuss.circleci.com/u/adil26)\
**Replies:** 5\
**Last updated:** [July 9, 2019, 7:09am UTC](https://discuss.circleci.com/t/error-git-command-not-found/31204 "2019-07-09T07:09:56Z")

</div>

\#!/bin/bash -eo pipefail mkdir -p /root/uc2-test && cd /tmp/\_circleci\_local\_build\_repo && git ls-files | tar -T - -c | tar -x -C /root/uc2-test && cp -a /tmp/\_circleci\_local\_build\_repo/.git /root/uc2-test /bin/bash: gi…

---

## [How to generate a SSH key in a CI build?](https://discuss.circleci.com/t/how-to-generate-a-ssh-key-in-a-ci-build/27707)

<div class="topic-metadata">

**Author:** [@shaun](https://discuss.circleci.com/u/shaun)\
**Replies:** 4\
**Last updated:** [January 17, 2019, 11:25pm UTC](https://discuss.circleci.com/t/how-to-generate-a-ssh-key-in-a-ci-build/27707 "2019-01-17T23:25:44Z")

</div>

Hi, I am setting up Circle CI for the first time. As part of my build process I need to generate SSH keys for a package I am using (https://github.com/lexik/LexikJWTAuthenticationBundle/blob/master/Resources/doc/index.m…

---

## [Container circleci/php:7.1-node-browsers broken](https://discuss.circleci.com/t/container-circleci-php-7-1-node-browsers-broken/26781)

<div class="topic-metadata">

**Author:** [@estahn](https://discuss.circleci.com/u/estahn)\
**Replies:** 1\
**Last updated:** [November 28, 2018, 10:51pm UTC](https://discuss.circleci.com/t/container-circleci-php-7-1-node-browsers-broken/26781 "2018-11-28T22:51:19Z")

</div>

The latest update broke the container circleci/php:7.1-node-browsers. Workaround: - image: circleci/php@sha256:0c1e51bca767cd194ad243aed5e9eaac82810582b0a25dccc15fde421421f80c Error message: Installing shared extensi…

---

## [Cannot install bcMath in to php image](https://discuss.circleci.com/t/cannot-install-bcmath-in-to-php-image/26332)

<div class="topic-metadata">

**Author:** [@jachno](https://discuss.circleci.com/u/jachno)\
**Replies:** 3\
**Last updated:** [November 6, 2018, 6:45pm UTC](https://discuss.circleci.com/t/cannot-install-bcmath-in-to-php-image/26332 "2018-11-06T18:45:53Z")

</div>

I am trying to get a container to run laravel and the unit tests. but when i run composer update it says moontoast/math 1.1.2 requires ext-bcmath \* -\> the requested PHP extension bcmath is missing from your system. I …

---

## [How does circleci-demo-php-laravel prepare APP\_KEY without creating .env file?](https://discuss.circleci.com/t/how-does-circleci-demo-php-laravel-prepare-app-key-without-creating-env-file/25306)

<div class="topic-metadata">

**Author:** [@kanonji](https://discuss.circleci.com/u/kanonji)\
**Replies:** 1\
**Last updated:** [September 29, 2018, 3:47am UTC](https://discuss.circleci.com/t/how-does-circleci-demo-php-laravel-prepare-app-key-without-creating-env-file/25306 "2018-09-29T03:47:21Z")

</div>

https://github.com/CircleCI-Public/circleci-demo-php-laravel I am currently setting up CI for my Laravel project. I refer the demo repository above to know how to make it but I can not understand why demo’s jobs succes…

---

## [Pushing to develop branch does not trigger build](https://discuss.circleci.com/t/pushing-to-develop-branch-does-not-trigger-build/24940)

<div class="topic-metadata">

**Author:** [@mattsches](https://discuss.circleci.com/u/mattsches)\
**Replies:** 8\
**Last updated:** [September 6, 2018, 8:48pm UTC](https://discuss.circleci.com/t/pushing-to-develop-branch-does-not-trigger-build/24940 "2018-09-06T20:48:30Z")

</div>

Hi, I set up a simple PHP project on GitHub using the git-flow model. Currently, I have only two branches master and develop. I’m frequently pushing to develop and only want develop to be built currently, but the build …

---

## [CircleCI 2 PHPUnit keeps failing with "Exited with code 255"](https://discuss.circleci.com/t/circleci-2-phpunit-keeps-failing-with-exited-with-code-255/24826)

<div class="topic-metadata">

**Author:** [@exoduz](https://discuss.circleci.com/u/exoduz)\
**Replies:** 5\
**Last updated:** [August 31, 2018, 8:29am UTC](https://discuss.circleci.com/t/circleci-2-phpunit-keeps-failing-with-exited-with-code-255/24826 "2018-08-31T08:29:53Z")

</div>

Hi, Not sure if there’s anyone who could help us regarding this issue but we’re trying to upgrade our CI to be compliant with CircleCI 2.0. We’re trying to implement PHPUnit to run tests on deploy but are having some p…

---

## [Example v2 config using php-fpm and nginx (as separate containers)](https://discuss.circleci.com/t/example-v2-config-using-php-fpm-and-nginx-as-separate-containers/24821)

<div class="topic-metadata">

**Author:** [@DaveLiddament](https://discuss.circleci.com/u/DaveLiddament)\
**Replies:** 1\
**Last updated:** [August 30, 2018, 9:05pm UTC](https://discuss.circleci.com/t/example-v2-config-using-php-fpm-and-nginx-as-separate-containers/24821 "2018-08-30T21:05:11Z")

</div>

Has anyone got an example of a CircleCI v2 config that has nginx and php-fpm. Some of our system smoke tests make curl requests to the fully operation code base. I’m not a docker person and I can’t find any relevant exa…

---

## [How to install PHP memcached extension?](https://discuss.circleci.com/t/how-to-install-php-memcached-extension/24190)

<div class="topic-metadata">

**Author:** [@bancer](https://discuss.circleci.com/u/bancer)\
**Replies:** 5\
**Last updated:** [August 11, 2018, 7:41am UTC](https://discuss.circleci.com/t/how-to-install-php-memcached-extension/24190 "2018-08-11T07:41:05Z")

</div>

I tried: - run: sudo apt-get update - run: sudo apt-get install software-properties-common - run: sudo add-apt-repository ppa:ondrej/php -y - run: sudo apt-get update But this results in: #!/bin/bash -eo pipef…

---

## [Using APCu in phpunit](https://discuss.circleci.com/t/using-apcu-in-phpunit/13096)

<div class="topic-metadata">

**Author:** [@aguimaraes](https://discuss.circleci.com/u/aguimaraes)\
**Replies:** 1\
**Last updated:** [June 14, 2018, 8:23am UTC](https://discuss.circleci.com/t/using-apcu-in-phpunit/13096 "2018-06-14T08:23:54Z")

</div>

I have some tests using the apcu extension: https://github.com/aguimaraes/circuit-breaker/blob/72db3873c6956f8a8b025028e90f007dc34f1a5f/tests/Adapter/APCuTest.php For some reason apcu\_fetch always return false. am I …

---

## [Simple PHP/MySQL/MariaDB connection demo](https://discuss.circleci.com/t/simple-php-mysql-mariadb-connection-demo/21485)

<div class="topic-metadata">

**Author:** [@halfer](https://discuss.circleci.com/u/halfer)\
**Replies:** 3\
**Last updated:** [April 21, 2018, 11:47am UTC](https://discuss.circleci.com/t/simple-php-mysql-mariadb-connection-demo/21485 "2018-04-21T11:47:14Z")

</div>

Some while back I helped someone get a PHP/MySQL connection working on CircleCI. I thought the configuration would be useful to a wider audience, so I’m putting it in its own post. Repository here.

---

## [Caching composer dependencies](https://discuss.circleci.com/t/caching-composer-dependencies/1215)

<div class="topic-metadata">

**Author:** [@frank](https://discuss.circleci.com/u/frank)\
**Replies:** 3\
**Last updated:** [April 1, 2018, 12:51pm UTC](https://discuss.circleci.com/t/caching-composer-dependencies/1215 "2018-04-01T12:51:19Z")

</div>

TL;DR Add this to your circle.yml: dependencies: cache\_directories: - ~/.composer/cache A naive way to cache composer dependencies would be to add the install directory to the cache\_directories section of you…

---

## [PHP 7.2 GD Image with jpeg support](https://discuss.circleci.com/t/php-7-2-gd-image-with-jpeg-support/20516)

<div class="topic-metadata">

**Author:** [@sethphillips](https://discuss.circleci.com/u/sethphillips)\
**Replies:** 3\
**Last updated:** [March 12, 2018, 4:25am UTC](https://discuss.circleci.com/t/php-7-2-gd-image-with-jpeg-support/20516 "2018-03-12T04:25:09Z")

</div>

I’m having a heck of a time getting gd image support in PHP images. Ive successfully gotten support for png images but not jpeg. I still get gd/imagejpeg() is not defined. my .yml file is below # PHP CircleCI 2.0 co…

---

## [Cannot install php-intl on php7.2 image](https://discuss.circleci.com/t/cannot-install-php-intl-on-php7-2-image/20528)

<div class="topic-metadata">

**Author:** [@denitsa-cm](https://discuss.circleci.com/u/denitsa-cm)\
**Replies:** 4\
**Last updated:** [March 7, 2018, 3:32pm UTC](https://discuss.circleci.com/t/cannot-install-php-intl-on-php7-2-image/20528 "2018-03-07T15:32:29Z")

</div>

I am using this image circleci/php:7.2-apache-stretch-node-browsers (Ubuntu 14.04) and I cannot install the ext-intl extension, which is a requirement for one of my packages. I tried different commands, like sudo apt-ge…

---

## [PHPunit request result in 404](https://discuss.circleci.com/t/phpunit-request-result-in-404/20182)

<div class="topic-metadata">

**Author:** [@AntoineDewaele](https://discuss.circleci.com/u/AntoineDewaele)\
**Replies:** 3\
**Last updated:** [February 20, 2018, 2:20pm UTC](https://discuss.circleci.com/t/phpunit-request-result-in-404/20182 "2018-02-20T14:20:55Z")

</div>

Hi there, I built a php / Laravel project in CircleCI. I would like to run my tests with PHPunit. The problem is that all my tests that include request to my API result in 404. It seems like test server doesn’t not exi…

---

## [How to install php-imagick PHP extension](https://discuss.circleci.com/t/how-to-install-php-imagick-php-extension/19051)

<div class="topic-metadata">

**Author:** [@gocanto](https://discuss.circleci.com/u/gocanto)\
**Replies:** 5\
**Last updated:** [January 27, 2018, 10:53pm UTC](https://discuss.circleci.com/t/how-to-install-php-imagick-php-extension/19051 "2018-01-27T22:53:30Z")

</div>

Hi, everyone. As you can see I am new to CircleCI and am facing an issue when trying to install “php-imagick”. The building process says that the extension could not be found. So far, I have tried these: run: sudo do…

---

## [Composer not available on PHP images](https://discuss.circleci.com/t/composer-not-available-on-php-images/14415)

<div class="topic-metadata">

**Author:** [@floretan](https://discuss.circleci.com/u/floretan)\
**Replies:** 25\
**Last updated:** [January 2, 2018, 9:53pm UTC](https://discuss.circleci.com/t/composer-not-available-on-php-images/14415 "2018-01-02T21:53:35Z")

</div>

I'm trying to set up an existing PHP project with circleCI 2.0, but the default template fails because composer is not installed in the system: /bin/bash: composer: command not found Exited with code 127 Am I missing…

---

## [Php5enmod on php:5.6 does not enable mod](https://discuss.circleci.com/t/php5enmod-on-php-5-6-does-not-enable-mod/18606)

<div class="topic-metadata">

**Author:** [@NBr](https://discuss.circleci.com/u/NBr)\
**Replies:** 15\
**Last updated:** [December 18, 2017, 4:06pm UTC](https://discuss.circleci.com/t/php5enmod-on-php-5-6-does-not-enable-mod/18606 "2017-12-18T16:06:49Z")

</div>

When I run version: 2 jobs: build: docker: # specify the version you desire here - image: circleci/php:5.6-apache working\_directory: ~ steps: - checkout # Download and cache depe…

[Next page](https://discuss.circleci.com/tag/php/58.md?match_all_tags=true&page=1&tags%5B%5D=php)
