Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP Fatal error: Call to undefined function imagecreatefrompng()

Tags:

php

module

gd

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?

like image 535
VaTo Avatar asked Jun 16 '15 00:06

VaTo


1 Answers

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

like image 57
VaTo Avatar answered Nov 08 '22 01:11

VaTo