Invalid web adress during install

Invalid web adress during install

by Audun Hauge -
Number of replies: 3
During install (1.5 latest):

The web address does not appear to be valid - this Moodle installation doesn't appear to be there.

I've seen this error mentioned for IIS on windows, but I now get it under Linux (Slackware 9.1.0, not my own server).

The install-script does the following:
/// check wwwroot
    if (ini_get('allow_url_fopen')) {
        if (($fh = @fopen($INSTALL['wwwroot'].'/install.php', 'r')) === false) {
            $errormsg .= get_string('wwwrooterror', 'install').'<br />';
        }
    }

I change the test to
if (false)

so that the install can complete

The next error is:
The admin directory specified is incorrect

I override the test
if (($fh = @fopen($INSTALL['wwwroot'].'/'.$INSTALL['admindirname'].'/site.html', 'r')) !== false) {

and the install goes smoothly.

Are these two tests really neccessary?
Average of ratings: -
In reply to Audun Hauge

Re: Invalid web adress during install

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
There do seem to be some issues with the fopen, that won't go away. It would be interesting to know if an error was generated (in your Apache error log) that might identify what went wrong.
In reply to Howard Miller

Re: Invalid web adress during install

by Audun Hauge -
Sorry, external web-host. I have no access to the error-log. I don't get these errors on my own servers ...
In reply to Audun Hauge

Re: Invalid web adress during install

by Rikko Verrijzer -
I've got the same problem, and have acces to the error-log, however there is no error in it.

Rikko