I need help install GD Library. i was using digitalocean spaces with app platform and i get error “GD Library extension not available with this PHP installation.”
all my config its good in local env and its work but from the app platform its show me that error.
Please help me with it. thanks.
composer.json
"require": {
"php": "^8.0.2",
"laravel/framework": "^9.2",
"league/flysystem-aws-s3-v3": "^3.0",
"ext-gd": "*",
.....
},
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Hi there,
Once you’ve made the change to the composer.json file, did you also run
composer update
to update your lock file too?Besides that, the composer.json looks correct.
Best,
Bobby
Hello there,
When using PHP apps in the App Platform we recommend using Composer to configure them. This would allow you to specify GD Library in your composer.json file and have it installed.
If the composer is set to include the GD option then it should pull the image with it enabled. If the composer isn’t an option you can use a Dockerfile instead and have it install the GD library during the build process.
To install PHP GD you would need to use Composer with your app to specify that version.
Regards
Hi @saif0909,
If you are using a standard Droplet, you can install the GD library with yum or apt. What PHP version you need to install the GD library for?