如何在 Ubuntu 20.04 上修复 "OTGS Installer, responsible for receiving automated updates for WPML and Toolset, requires the following PHP component(s) in order to function:cURL"
问题:
你在 Ubuntu 20.04 上运行的 Wordpress 安装显示此错误消息:
otgs_installer_error.txt
OTGS Installer, responsible for receiving automated updates for WPML and Toolset, requires the following PHP component(s) in order to function:cURL
了解更多:WPML 最低要求解决方案
你需要为你的 PHP 版本安装 curl 包。
通常你可以使用
install_php_curl.sh
sudo apt -y install php7.4-curl这样做应该立即修复问题(只需重新加载你的 Wordpress 仪表板)。如果你使用 PHP 7.2,你需要 sudo apt -y install php7.2-curl。
如果这样做后问题仍未修复,尝试重启你的 Web 服务器(例如 sudo service apache restart 或 sudo service nginx restart),尝试使用 sudo service php7.4-fpm restart 或 sudo service php7.2-fpm restart 重启 PHP-FPM,或尝试重启你的服务器。如果这些都不起作用,你需要手动检查 wordpress 站点使用的是哪个 PHP 实例,并为该 PHP 实例安装 curl 包。
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow