Amazon EC2 - PHP GD image library Amazon EC2 - PHP GD image library wordpress wordpress

Amazon EC2 - PHP GD image library


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

Ubuntu: sudo apt-get install php5-gdCentOS: 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