GD Library extension not available with this PHP installation Ubuntu Nginx

后端 未结 6 787
南方客
南方客 2020-12-24 02:01

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 <

6条回答
  •  旧时难觅i
    2020-12-24 02:25

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

    • PHP5: sudo apt-get install php5-gd
    • PHP7.0: sudo apt-get install php7.0-gd
    • PHP7.1: sudo apt-get install php7.1-gd
    • PHP7.2: sudo apt-get install php7.2-gd
    • PHP7.3: sudo apt-get install php7.3-gd
    • PHP7.4: sudo apt-get install php7.4-gd

    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
    

提交回复
热议问题