我正在尝试在带有& 的系统mediawiki 1.7
上进行设置(同时严格遵循Ubuntu 20.04
php 7.4
apache2
mariadb
这教程),但是当我尝试通过 localhost 访问该网站时,出现了以下错误信息(index.php):
// If you are reading this in your web browser, your server is probably
// not configured correctly to run PHP applications!
//
// See the README, INSTALL, and UPGRADE files for basic setup instructions
// and pointers to the online documentation.
...
到目前为止,我已经:
答案1
重新安装libapache2-mod-php7.4
就可以了。
$ sudo apt purge libapache2-mod-php7.4 libapache2-mod-php
$ sudo apt-get install libapache2-mod-php7.4
$ sudo a2enmod php7.4
$ systemctl reload apache2