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
树莓派wordpress网站无法解析 php文件问题

树莓派wordpress网站无法解析 php文件问题

树莓派最新64位系统安装wordpress后发现apache2可以正常运行,但无法解析php,网站显示的是php源代码

解决方案:
1.安装lib文件
sudo apt-get install libapache2-mod-php7.4 #大版本保持一致就好
2.修改配置文件

cd /etc/apache2/mods-enabled
sudo nano php7.4.conf #这个地方改成你对应的版本


在set handler 里面的require all denied改为granted
以及下面的 php|ar一串正则也改为granted

3.重启apche2

sudo service apache2 restart