PHP GD Fatal error: Call to undefined function ImageCreateFromPNG() in /path/to/file.php on line 379
Su CentOS e Red HAT Enerprise potete installare la libreria con un semplice comando da shell: yum install php-gd
Dopo aver dato l’invio otterrete quanto segue: Loading "installonlyn" plugin Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Downloading header for php-gd to pack into transaction set. php-gd-5.1.6-15.el5.i386. 100% |=========================| 17 kB 00:00 ---> Package php-gd.i386 0:5.1.6-15.el5 set to be updated --> Running transaction check Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: php-gd i386 5.1.6-15.el5 base 111 k Transaction Summary ============================================================================= Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 111 k Is this ok [y/N]:
Dopo aver dato l’ok all’installazione e dopo che il sistema abbia finito tutte le sue operazioni (dowload, check ed installazione) dobbiamo riavviare il demone di apache, tanto basterà a rendere attive le modifiche. /etc/init.d/http restart
enjoy it]]>