我想在AWS ec2上安装moodle,数据库在ec2实例上是本地的,现在我卡在错误 "安装必须从原IP地址完成,对不起"。我已经尝试了网络上所有可能的解决方案,但没有任何工作给我。
只要把这3行注释出来,然后重新加载。
if ($adminuser->lastip !== getremoteaddr()) {
print_error('installhijacked', 'admin');
}
https:/github.commoodlemoodleblobmasteradminindex.php#L753-L755。