Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the simply-static domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wp-includes/functions.php on line 6121
树莓派安装cURL和XMLReader的简单方式

树莓派安装cURL和XMLReader的简单方式

在树莓派上安装WordPress,如果需要SSL安全链接或Astra这样的经典主题,这时就需要cURL和XMLReader环境支持,这两个环境如何建立,网上有大量资料可供参考,但都比较复杂而且容易安装失败,本站之前也提供了类似方法。为方便大家越过这些非关键但必要的步骤,这里总结一下简单易用的环境搭建方法(我用的是php7.4,各位根据自己的版本修改即可):

1、安装cURL

sudo apt-get install php7.4-curl

2、安装XMLReader

sudo apt install php7.4-xml

安装完成后需要重启apache

sudo service apache2 restart