PHP Fatal error: Call to undefined function imagecreatefrompng()

14.2k views Asked by At

That is the error message that I get on my php error log.

So far, I know that the GD library is the problem, it's not installed ( I think is not installed but it was working before in my server and now is not so I don't know what happened but I want to assume that is not installed).

I checked if the module was installed by running php -m and gd doesn't show up, also phpinfo() doesn't show anything related to gd. I installed php on a CentOS server 5.9 with remi repo. Now, the problem is that I can't just run yum install php-gd because it won't have any effect since it was installed manually. Any ideas on how can I install just that module to my php installation?

1

There are 1 answers

1
VaTo On BEST ANSWER

I just had to install the php-gd library with the remi repo enabled So if anybody has the same problem here it is: yum install php-gd --enablerepo=remi,remi-php55