Fatal error: Call to undefined function: imagecreate()

后端 未结 8 794
难免孤独
难免孤独 2021-02-06 20:59

I\'m trying to put some graphics on a web page and at my prototype at the computer it\'s all working fine at the localhost. But now I uploaded the files to a server and I\'m hav

相关标签:
8条回答
  • 2021-02-06 21:52

    For Fedora, CentOS

    dnf install php-gd
    systemctl restart httpd.service
    

    On Ubuntu

    apt-cache search php*-gd
    apt-get install php<version>-gd
    systemctl restart apache2.service
    

    Windows users see: http://php.net/manual/en/image.installation.php

    0 讨论(0)
  • 2021-02-06 21:53

    It seems that your GD library is not being used. Double check your php.ini file.

    0 讨论(0)
提交回复
热议问题