发新话题
打印

install PHP-GD on Centos 7 with PHP 5.6.40

install PHP-GD on Centos 7 with PHP 5.6.40

yum install php-gd

参考:
https://serverfault.com/questions/990668/unable-to-install-php-gd-on-centos-7-with-php-5-6-40

error.log出错信息:
PHP Fatal error: Call to undefined function imagecreatefrompng()

Ubuntu:
apt-get -y install php5.6-gd

gd配置文件:
/etc/php/5.6/apache2/conf.d/20-gd.ini -> /etc/php/5.6/mods-available/gd.ini

查看动态链接库:
ldd /usr/lib/php/20131226/gd.so

重启apache生效

[ 本帖最后由 linda 于 2023-4-3 16:02 编辑 ]

TOP

发新话题