In order to install Moodle on my server, I went to the /var/www directory and copied the moodle folder to it. I configured the file permissions, set up my phpmyadmin database, and installed Moodle. However, everything was successful until I tried to access it from another computer at http://ordinaryjoe80.dyndns-server.com/moodle (Note – this URL is no longer available). I kept getting an error saying
“Incorrect access detected, this server may be accessed only through “http://localhost/moodle” address, sorry.
Please notify server administrator..”
AND it was only able to be accessed on the actual server computer. I spent hours making sure permission files were correct and everything was in order. Finally, I came across an forum where someone had the same issue. Apparently, sometimes this issue occurs in Moodle 2.0 and so I followed the last post to the forum (http://moodle.org/mod/forum/discuss.php?d=149586). I realized that file config.php had a string that said
$CFG->wwwroot = ‘http://localhost/moodle’;
This is why I couldn’t access it from another computer. I changed the http://localhost/moodle to http://ordinaryjoe80.dyndns-server.com/moodle and voila – it worked like a charm. You may now access Moodle Joe at http://ordinaryjoe80.dyndns-server.com/moodle (Note – this URL is no longer available).