Amazon EC2 - PHP GD image library

杀马特。学长 韩版系。学妹 提交于 2019-12-05 00:48:28

I'm guessing you have some type of Linux installed, probably Ubuntu or CentOS.

Ubuntu: sudo apt-get install php5-gd CentOS: sudo yum install php-gd

You probably have to restart Apache afterwards: service httpd restart or service apache2 restart -- the names differ from distribution to distribution.

Let me know if this works!

In my case, I was getting error like there is version conflict between different versions of php-common when I entered "yum install php-gd" so I checked my php version using "php -v" in shell and then installed the corresponding gd using "yum install php56-gd" because I had php 5.6 installed in my machine.

Hope someone will get help from this.

Cheers

to avoid compatibility problems first do:

php --version

to know your php version

the answer is something in the form PHP X.Y.Z

so you have to take X, Y and do:

sudo yum install phpXY-gd

for instance if php --version says PHP 5.5.26

you will do:

sudo yum install php55-gd
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!