• GoDaddy Community
  • VPS & Dedicated Servers
  • VPS & Dedicated Servers

    Showing results for 
    Show  only  | Search instead for 
    Did you mean: 

    Re-compile php version with extension arguments

    Hi there.


    My (LAMP) project relies on the presence of GD library, so far so good since it's already builtin on the PHP version shipped on my VPS. Has not been configured extensively, however, the function imagecreatefromwebp is not registered at startup so I lean to believe this kind of situation has been handled in the past for someone else in the community although I couldn't find any resource about this specific topic.


    How can I recompile PHP with library options, especially GD library (https://www.php.net/manual/en/image.installation.php) with option  --with-vpx-dir=DIR.


    From the docs:

    To enable support for webp add --with-vpx-dir=DIR . Available as of PHP 5.5. As of PHP 7.0.0 --with-webp-dir=DIR has to be added, i.e. support for libvpx has been removed in favor of libwebp.