Install/enable gd extension on php


#1

sudo apt-get install php7.0-gd

you can just change the php version as needed. if you are running php 7.2 just use the code

sudo apt-get install php7.2-gd

Also restart apache after the command
sudo service apache2 restart