How to enable WEBP image format support in PHP 7.*?

Hi @peter279k

I have checked that, but i need webp support in code. I wont be able to run with ‘/usr/bin/php’

By default, Travis CI build will use the phpenv to build pre-built PHP.

And we cannot control above pre-built PHP.

That’s the reason why I use the sudo prefix to install other PHP packages on operating system.

If you want to use php rather than using the /usr/bin/php, I think it has an approach:

  • rm -f /home/travis/.phpenv/shims/php
  • ln -s /usr/bin/php /home/travis/.phpenv/shims/php

Using ln -s to create soft link to let /usr/bin/php be php command.

More details about .travis.yml file is available here.

Hi @peter279k
Do you know how to recompile php in travis ?

I have no idea about recompiling PHP during Travis CI building.

I also don’t suggest that because this will take much time to do prepare environment on every Travis CI build.