Hello,
I'm having troubles getting my moodle site up and running after moving it and renaming the server it is on. (Moodle 2.8.3 on Ubuntu 14.04) I've scoured these forums and tried everything I could find, but I cannot get the 'Incorrect access detected...' message to go away. Worse yet, when it re-directs, I get a 404 page not found error.
I had the server/site up and running from my home office with no issues (I accessed it via my IP address on port 8080). When I moved it to it's permanent home, it had to be re-named and configured to listen on port 80. Prior to doing so, I backed up the entire filing system and dumped the database.
My moodle folder was in /var/www/html. So, that's where I went to modify my config.php file. I updated the wwwroot variable so it now has the FQDN/html/moodle. It used to be IP_ADDRESS:8080/html/moodle (sorry, I don't have the exact address).
Next I followed the instructions here to update the mysql dump file: https://docs.moodle.org/21/en/Moodle_migration and followed method B.
(b) The second method is to backup the Moodle database first, then use the search and replace feature of your text editor (or use a unix tool like sed) to replace the old URL with the new one in the mysql backup file. Here is an example sed command:
#sed -e 's/oldserver.com/newserver.com/g' oldmysqldump.sql > newmysqldump.sql.
I then dropped the moodle database, created a new one, and imported the dump file.
Now I'm still getting the incorrect access message and cannot seem to get around it...Any suggestions??? Thanks in advance!