英文:
how fix Your PHP is missing "CURL" Extension on WordPress?
问题
PHP已安装
PHP警告:PHP启动:无法加载动态库'/usr/lib64/php/modules/mysqli.so'(尝试:/usr/lib64/php/modules/mysqli.so(/usr/lib64/php/modules/mysqli.so中未定义的符号:mysqlnd_global_stats),/usr/lib64/php/modules//usr/lib64/php/modules/mysqli.so.so(/usr/lib64/php/modules//usr/lib64/php/modules/mysqli.so.so:无法打开共享对象文件:文件或目录不存在))位于未知位置的第0行
PHP警告:模块'curl'已加载位于未知位置的第0行
PHP 7.4.30(cli)(构建于:2022年6月7日08:38:19)(NTS)
版权所有(c)PHP集团
Zend引擎v3.4.0,版权所有(c)Zend Technologies
使用Zend OPcache v7.4.30,版权所有(c)Zend Technologies
curl已安装,curl版本
curl 7.80.0(x86_64-pc-linux-gnu)libcurl/7.80.0 OpenSSL/1.1.1k-fips zlib/1.2.11
发布日期:2021年11月10日
协议:dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
功能:alt-svc AsynchDNS HSTS HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL TLS-SRP UnixSockets
但我的WordPress cURL扩展不起作用。
您的PHP缺少"CURL"扩展。Blox需要此扩展。请在php.ini中启用它。
英文:
PHP had installed
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysqli.so' (tried: /usr/lib64/php/modules/mysqli.so (/usr/lib64/php/modules/mysqli.so: undefined symbol: mysqlnd_global_stats), /usr/lib64/php/modules//usr/lib64/php/modules/mysqli.so.so (/usr/lib64/php/modules//usr/lib64/php/modules/mysqli.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Module 'curl' already loaded in Unknown on line 0
PHP 7.4.30 (cli) (built: Jun 7 2022 08:38:19) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.30, Copyright (c), by Zend Technologies
curl had installed ,curl version
curl 7.80.0 (x86_64-pc-linux-gnu) libcurl/7.80.0 OpenSSL/1.1.1k-fips zlib/1.2.11
Release-Date: 2021-11-10
Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS HSTS HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL TLS-SRP UnixSockets
but my wordpress curl extension not working.
Your PHP is missing "CURL" Extension. Blox needs this extension. Please enable it in php.ini
答案1
得分: 0
apt install php8.2-curl
编辑此文件:
nano /etc/php/8.2/apache2/php.ini
在文件中间位置找到以下行:
;extension=curl
删除行首的;,使其如下:
extension=curl
保存并重启apache2。
service apache2 restart
就是这样。
英文:
apt install php8.2-curl
All so edit this file:
nano /etc/php/8.2/apache2/php.ini
About half way down file the line that looks like this:
;extension=curl
Remove the ; at the start of it. so looks like this:
extension=curl
save and restart apache2.
service apache2 restart
That should be it.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论