# Build of PHP app fails

**URL:** <https://travis-ci.community/t/build-of-php-app-fails/13859>\
**Category:** PHP\
**Created:** [June 16, 2023, 1:22am UTC](https://travis-ci.community/t/build-of-php-app-fails/13859 "2023-06-16T01:22:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eldy](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/eldy/32/636_2.png) [@eldy](https://travis-ci.community/u/eldy)\
**Post date:** [June 16, 2023, 1:22am UTC](https://travis-ci.community/t/build-of-php-app-fails/13859/1 "2023-06-16T01:22:15Z")

</div>

Since today, running Travis CTI with different PHP version does not work.  
Error is when Travis run phpenv to switch to the correct PHP version. It makes a curl to get a non existing file.

For example, when running travis with PHP7.1, i got this error during init steps

 ![image](https://us1.discourse-cdn.com/flex015/uploads/travis_ci/original/2X/e/e94ef2b7663cb883ace30191040cc7bc2873fba9.png)

---

<div class="post-metadata">

**Author:** ![eldy](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/eldy/32/636_2.png) [@eldy](https://travis-ci.community/u/eldy)\
**Post date:** [June 16, 2023, 11:38pm UTC](https://travis-ci.community/t/build-of-php-app-fails/13859/2 "2023-06-16T23:38:25Z")

</div>

In text mode, this is the error:

```auto
Adding APT Sources

1789.78s$ sudo -E apt-add-repository -y "ppa:ondrej/php"

179Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease

180Hit:2 http://package.perforce.com/apt/ubuntu bionic InRelease

181Get:3 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease [20.8 kB]

182Hit:4 http://us-east-1.ec2.archive.ubuntu.com/ubuntu bionic InRelease

183Hit:5 http://us-east-1.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease

184Hit:6 http://us-east-1.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease

185Hit:7 http://apt.postgresql.org/pub/repos/apt bionic-pgdg InRelease

186Hit:8 https://public.dhe.ibm.com/software/server/POWER/Linux/toolchain/at/ubuntu bionic InRelease

187Fetched 20.8 kB in 1s (15.9 kB/s)

188Reading package lists... Done

1899.82s$ travis_apt_get_update

190Installing APT Packages

1911.15s$ sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install apache2 pgloader php php7.1-pgsql php7.1-mysqli php7.1-xml php7.1-intl php8.1-pgsql php8.1-mysqli php8.1-xml php8.1-intl

192Reading package lists...

193Building dependency tree...

194Reading state information...

195E: Unable to locate package php7.1-pgsql

196E: Couldn't find any package by glob 'php7.1-pgsql'

197E: Couldn't find any package by regex 'php7.1-pgsql'

198E: Unable to locate package php7.1-mysqli

199E: Couldn't find any package by glob 'php7.1-mysqli'

200E: Couldn't find any package by regex 'php7.1-mysqli'

```
