You may have edited the wrong php.ini
file, as some environments can have multiple php.ini
files due to different configurations of PHP. To check to see if the PHP version you are using is actually loading the extension, you can type php -m
within your project terminal to see loaded modules, alternatively you can dd(get_loaded_extensions());
within your PHP somewhere to see similar results.
If your extension is not loaded, it most likely means you have edited the wrong file. Therefore you can type php --ini
within your project terminal and check for the Loaded Configuration File
. This is the php.ini
file used by your CLI. Make sure the extension is uncommented within that file.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.