Install or enable PHP's gd extension
snippet in php

install gd extension php ubuntu

user3481

#install gd extension, 7.4 replace it with your version
sudo apt-get install php7.4-gd
#check if installed
php -m | grep gd
#restart your web server 
sudo service apache2 restart
or
sudo service nginx restart

Install or enable PHP's gd extension

user5851

apt-get install php-gd

how to get php ext-gd with

user4238

[gd]
extension=/path/to/gd.so # use the gd.so absolute path here