Установите или включите расширение PHP GD
apt-get install php-gd
Viluma
apt-get install php-gd
Check if in your php.ini file has the following line:
;extension=php_gd2.dll
if it does, remove the ";", then save the file and reload apache.