Enabling/installing GD extension? --without-gd

后端 未结 9 845
刺人心
刺人心 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:09

    if you are on a Debian based server (such as Ubuntu) you can run the following command:

    apt-get install php-gd
    

    Then once it is complete run:

    /etc/init.d/apache2 restart
    

    This will restart your server and enable GD in PHP.

    If you are on another type of system you will need to use something else (like yum install) or compile directly into PHP.

提交回复
热议问题