Enabling/installing GD extension? --without-gd

后端 未结 9 820
刺人心
刺人心 2020-12-28 11:58

How does one enable (or perhaps I need to install) GD when my phpinfo() output in \"Configure Command\" says; --without-gd ?

I also have nothing in my phpinfo() outp

9条回答
  •  甜味超标
    2020-12-28 12:20

    In CentOS (but the same may apply to other distros too) if you install the php7x-gd module followed by Apache restart and still the php -i does not show the GD Support => enabled it might mean that the php.ini was not automatically configured to support this extension.

    All you have to to is either to edit the /etc/php/php.ini or to create a /etc/php.d/gd.ini file with the following content:

    [gd]
    extension=/path/to/gd.so # use the gd.so absolute path here
    

提交回复
热议问题