如果在执行PHP相关命令时,看到一条警告消息:
PHP Warning: Module ‘curl‘ already loaded in Unknown on line 0
那是由于curl模块已经被PHP标准库内建了,如果在/etc/php/8.2/fpm/php.ini和/etc/php/8.2/fpm/conf.d/20-curl.ini两处配置文件里又启用了curl扩展,就会报这个警告。
解决方法是在这两个配置文件中都不启用curl扩展,就是使用;号注释掉extension=curl.so这行。修改了配置文件记得重启php-fpm服务,最后只要在php -m命令的输出中看到curl了,就说明已启用curl扩展。
It is perfect time to make some plans for the long run and it’s time to be happy.
I have read this publish and if I may just I want to suggest you few fascinating issues or suggestions.
Maybe you can write next articles relating to this article.
I wish to learn more issues about it!