安装必须从原来的IP地址完成,对不起 - Moodle

问题描述 投票:0回答:1

我想在AWS ec2上安装moodle,数据库在ec2实例上是本地的,现在我卡在错误 "安装必须从原IP地址完成,对不起"。我已经尝试了网络上所有可能的解决方案,但没有任何工作给我。

database amazon-ec2 installation moodle
1个回答
0
投票

只要把这3行注释出来,然后重新加载。

        if ($adminuser->lastip !== getremoteaddr()) {
            print_error('installhijacked', 'admin');
        }

https:/github.commoodlemoodleblobmasteradminindex.php#L753-L755。

© www.soinside.com 2019 - 2024. All rights reserved.