Enabling/installing GD extension? --without-gd

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

    I've PHP 7.3 and Nginx 1.14 on Ubuntu 18.

    # it installs php7.3-gd for the moment
    # and restarts PHP 7.3 FastCGI Process Manager: php-fpm7.3.
    sudo apt-get install php-gd
    
    # after I've restarted Nginx
    sudo /etc/init.d/nginx restart
    

    Works!

提交回复
热议问题