Yii 2 giving an exception when clicking on the default contact tab

后端 未结 7 964
梦如初夏
梦如初夏 2021-02-06 02:20

I am getting this error when I run on my mac with localhost.

Either GD PHP extension with FreeType support or ImageMagick PHP extension with PNG support

7条回答
  •  北荒
    北荒 (楼主)
    2021-02-06 02:21

    For solve problem, first install php-gd module on your system. After that open php.ini on your editor and search for ;extension=gd.so and remove the heading ; sign. Then restart your apache service ;).

    For Arch Linux you can do followings (Lines that begins with # are command of terminal):

    • # pacman -S php-gd
    • # vim /etc/php/php.ini
    • Press / and type gd then press Enter
    • Find ;extension=gd.so and convert it into extension=gd.so by moving cursor on ; sign and press x
    • Press Esc and type :wq and press Enter
    • # systemctl restart httpd.service

提交回复
热议问题