# PHP 5.4 and 5.5 archives missing

**URL:** <https://travis-ci.community/t/php-5-4-and-5-5-archives-missing/3723>\
**Category:** PHP\
**Created:** [June 14, 2019, 4:07pm UTC](https://travis-ci.community/t/php-5-4-and-5-5-archives-missing/3723 "2019-06-14T16:07:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdpedrie](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/jdpedrie/32/1969_2.png) [@jdpedrie](https://travis-ci.community/u/jdpedrie)\
**Post date:** [June 14, 2019, 4:07pm UTC](https://travis-ci.community/t/php-5-4-and-5-5-archives-missing/3723/1 "2019-06-14T16:07:49Z")

</div>

```
$ phpenv global 5.5 2>/dev/null
5.5 is not pre-installed; installing
Downloading archive: https://storage.googleapis.com/travis-ci-language-archives/php/binaries/ubuntu/16.04/x86_64/php-5.5.tar.bz2
0.11s$ curl -s -o archive.tar.bz2 $archive_url && tar xjf archive.tar.bz2 --directory /
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error is not recoverable: exiting now
0.00s0.02s$ phpenv global 5.5
rbenv: version `5.5' not installed
The command "phpenv global 5.5" failed and exited with 1 during .

```

Same error for 5.4, but with URI `https://storage.googleapis.com/travis-ci-language-archives/php/binaries/ubuntu/16.04/x86_64/php-5.4.tar.bz2`.

Both are 404’s. Our builds are broken due to this.

---

<div class="post-metadata">

**Author:** ![ariademur](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/ariademur/32/2012_2.png) [@ariademur](https://travis-ci.community/u/ariademur)\
**Post date:** [June 18, 2019, 8:46am UTC](https://travis-ci.community/t/php-5-4-and-5-5-archives-missing/3723/2 "2019-06-18T08:46:26Z")

</div>

Having the same problem, both 5.4 and 5.5.

5.4 output:

```auto
$ phpenv global 5.4 2>/dev/null

5.4 is not pre-installed; installing

Downloading archive: https://storage.googleapis.com/travis-ci-language-archives/php/binaries/ubuntu/16.04/x86_64/php-5.4.tar.bz2

$ curl -s -o archive.tar.bz2 $archive_url && tar xjf archive.tar.bz2 --directory /

bzip2: (stdin) is not a bzip2 file.

tar: Child returned status 2

tar: Error is not recoverable: exiting now

$ phpenv global 5.4

rbenv: version `5.4' not installed

The command "phpenv global 5.4" failed and exited with 1 during .

Your build has been stopped.
```

Because of this, the build is failing.

Is there any soolution or workaround?

---

<div class="post-metadata">

**Author:** ![const-cloudinary](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@const-cloudinary](https://travis-ci.community/u/const-cloudinary)\
**Post date:** [June 18, 2019, 9:28am UTC](https://travis-ci.community/t/php-5-4-and-5-5-archives-missing/3723/3 "2019-06-18T09:28:31Z")

</div>

+1, I have the same problem

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [June 18, 2019, 11:47am UTC](https://travis-ci.community/t/php-5-4-and-5-5-archives-missing/3723/4 "2019-06-18T11:47:15Z")

</div>

To my knowledge, you can’t compile these old PHP versions on Xenial. If you need them, please use Trusty.

---

<div class="post-metadata">

**Author:** ![ApacheEx](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/apacheex/32/2023_2.png) [@ApacheEx](https://travis-ci.community/u/ApacheEx)\
**Post date:** [June 19, 2019, 8:07am UTC](https://travis-ci.community/t/php-5-4-and-5-5-archives-missing/3723/5 "2019-06-19T08:07:19Z")

</div>

adding “dist: trusty” to .travis.yml works for me

thanks @BanzaiMan

---

<div class="post-metadata">

**Author:** ![peter279k](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/peter279k/32/1707_2.png) [@peter279k](https://travis-ci.community/u/peter279k)\
**Post date:** [August 7, 2019, 3:40am UTC](https://travis-ci.community/t/php-5-4-and-5-5-archives-missing/3723/6 "2019-08-07T03:40:59Z")

</div>

It seems that the Travis CI build uses the `Xenial` dist by default, not `Trusty`.

To support the `php-5.x` versions correctly, adding the `dist: trusty` in `.travis.yml` setting is necessary.

## References

- [https://blog.travis-ci.com/2019-04-15-xenial-default-build-environment](https://blog.travis-ci.com/2019-04-15-xenial-default-build-environment)
