# Recompile PHP to enable image support

**URL:** <https://travis-ci.community/t/recompile-php-to-enable-image-support/10525>\
**Category:** PHP\
**Tags:** travis-build, travis-yml, php\
**Created:** [November 10, 2020, 7:03pm UTC](https://travis-ci.community/t/recompile-php-to-enable-image-support/10525 "2020-11-10T19:03:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manerkargaurav](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/manerkargaurav/32/5528_2.png) [@manerkargaurav](https://travis-ci.community/u/manerkargaurav)\
**Post date:** [November 10, 2020, 7:03pm UTC](https://travis-ci.community/t/recompile-php-to-enable-image-support/10525/1 "2020-11-10T19:03:01Z")

</div>

Hello,

I would like to know, how i can recompile php ? I need to compile php to enable webp support in gd.

> **[PHP: Installation - Manual](https://www.php.net/manual/en/image.installation.php)**

---

<div class="post-metadata">

**Author:** ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)\
**Post date:** [November 11, 2020, 8:00am UTC](https://travis-ci.community/t/recompile-php-to-enable-image-support/10525/2 "2020-11-11T08:00:40Z")

</div>

Hey @manerkargaurav,

The question is a bit vague, but the compile option is:

```php
--with-webp-dir 

```
