I'm having some pretty serious issues trying to install Moodle 2.0 Preview 3 into my development environment, and I was wondering if anyone could help me out.
A little background on the server in question: It's an Ubuntu VM-based sandbox server, PHP 5.2.10, with Moodle 1.5 through 1.9 installed in different subdirectories, and links out to the office MySQL and PostgreSQL servers. I have a similar sandbox on Windows that links to these as well as MS SQL Server. It gives me a wide range of test environments, and now I'm trying to add Moodle 2.0 to it. As the VM is one of a multitude running on this particular remotely-accessible development machine, its webserver runs on a non-standard port.
I initially installed Moodle 2.0 ages ago, so far back in fact that it was basically useless, so I ditched it and decided to install from scratch. No database, no files, nothing. This is a completely clean installation.
When initially running the installer, it attempts to auto-detect its web address, and almost gets it right, except for the port number. I seem to remember 1.9.x and earlier getting the port number right, but the reason this becomes a problem is that I can't edit the web address displayed! The form box is disabled for some reason, which is hugely irritating.
So I figured I would edit it myself using Firebug. With that done, I hit save, and go through the various DB setup bits. However, as soon as it writes out the config.php file, and before creating the database, I am redirected to the wrong address. Turns out the system ignores whatever value you put in the wwwroot box - it simply isn't passed through to the rest of the form, and $CFG->wwwroot is set to whatever the installer decides is correct.
So I edited the config.php file on the server and added the port number to wwwroot, which has previously been all that's needed. When I do this and then try to access the site, it goes thoroughly mental. First, it displays this error:
Incorrect access detected, this server may be accessed only through "http://<myaddress>:<myport>/moodles/2_0" address, sorry.
Am I doing something fundamentally wrong, or is the installer in preview 3 just broken? Is there any way I can get around this?