如何在PHP.ini中启用对模块的支持

时间:2016-02-29 06:09:53

标签: php apache gd

我的imagecreatefromwebp()库中不存在函数php(GD)imagecreatefromjpeg()和其他功能正常。我需要启用特定于imagecreatefromwebp()的内容。

已经在Debian上安装了GD2,并安装了一些模块。

如何启用对imagecreatefromwebp()的支持?

  1. 我可以通过在php.ini中添加指令或其他内容来启用它吗?
  2. 或者我是否需要安装附加模块?我该如何单独完成?
  3. 或者我是否需要使用所有必要的模块重新安装php?
  4. 编辑:此链接似乎有用 - > http://php.net/manual/en/image.installation.php无法完全理解它,它似乎专门用于(新)安装

    phpinfo()函数:GD enter image description here

1 个答案:

答案 0 :(得分:1)

我在网上研究过,答案是你应该用--with-vpx-dir = DIR选项重新安装php。

请看这个问题,其中描述的问题可能和您一样

How to compile php to enable webp support?