So i’m getting an error when i’m trying to upload an image.

gd library extension not available with this php installation

How to install GD library extension on my Laravel app.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi there @SteveEGL,

If you are on an Ubuntu server you could do that by running the following command:

  • sudo apt install php-gd

After that, you would need to restart your webserver:

  • In case that you are using Apache run:
  • sudo systemctl restart apache2
  • In case that you are using Nginx run:
  • sudo systemctl restart nginx