543310 543310 - 3 months ago 160
PHP Question

GD Library extension not available with this PHP installation Ubuntu Nginx

i am using

laravel
web framework on my
ubuntu 14.04
server and
nginx
web server , i have this error when i try to upload file using
laravel
to server.
my upload directory is on
public/uploads
folder that has 777 permission.

Answer

The GD Graphics Library is for dynamically manipulating images. For Ubuntu you need to install the package called php5-gd:

sudo apt-get install php5-gd

That's all, you can verify that php5-gd support loaded:

php -i | grep -i gd

Output should be like this:

GD Support => enabled
GD headers Version => 2.1.1-dev
gd.jpeg_ignore_warning => 0 => 0