phplaravelubuntunginx

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 a file using Laravel to the server. my upload directory is on the public/uploads folder that has 777 permission.


Solution

  • The GD Graphics Library is for dynamically manipulating images. For Ubuntu you should install it manually:

    That's all, you can verify that 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
    

    and finally restart your apache:

    sudo service apache2 restart