When I check the activated extensions in my php Docker container, the output lists several PHP modules, such as Core, ctype, curl, and others.
the extensions appears to be deactivated In the php.ini file for example ;extension=curl, and when I try to activate it (), I encounter the following error
PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20210902/curl (/usr/local/lib/php/extensions/no-debug-non-zts-20210902/curl: cannot open shared object file: No such file or directory)
I'm just trying to figure out where this activation is happening.
am using php:8.1.25-apache-bullseye
I understand that you try to use "curl" functions inside php scripts
You need to add "curl" into the
docker-php-ext-installinstruction. From your DockerfileOnce done, you should be able to run
Then to test if curl is enabled
That test curl for the php CLI usage