Wie gehe ich vor, um den Gd-Support in einer CentOS-Installation zu aktivieren?
Die Sache, die den Trick für mich schließlich gemacht hat, war:
yum install Gd gd-devel php-Gd
und starten Sie Apache neu:
service httpd restart
Sudo yum install php-Gd
ausführen.Mit CentOS 6.5+ und PHP 5.5:
yum install php55u-Gd
service httpd restart
Wenn Sie einen Fehler wie cannot map zero-fill pages: Cannot allocate memory in Unknown on line 0
erhalten, kann dies daran liegen, dass Sie keine Auslagerungsdatei haben. Ich schlage vor, Sie schauen sich das in dieser Antwort erwähnte Tutorial an: https://stackoverflow.com/a/20275282/828366
Tutorial: https://www.digitalocean.com/community/articles/how-to-add-swap-on-centos-6
CentOs 6.5+ & PHP 5.6:
Sudo yum install php56-Gd
service httpd restart
Setzen Sie den Befehl
yum install php-Gd
und starten Sie den Server neu (httpd, nginx usw.)
service httpd restart