Installation fails - web address does not appear to be valid

Installation fails - web address does not appear to be valid

by Patrick de Landre-Grogan -
Number of replies: 12

PHP vers. 4.3.8
Apache vers. 1.3.31
Moodle vers. 2004083101 (1.41)

On running "mysite/moodle/install.php" it gets as far as the screen where moodle decides that my directories are:

WEB ADDRESS http://www.scout-enterprises.co.uk/moodle 
MOODLE DIRECTORY  /usr/local/home/httpd/vhtdocs/scout-enterprises.co.uk/docs/moodle
DATA ADDRESS /usr/local/home/httpd/vhtdocs/scout-enterprises.co.uk/moodledata

When I hit 'next' I get the error:

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

On looking at the PHP code in "install.php"  it looks to me as if -

        if (($fh = @fopen($INSTALL['wwwroot'].'/install.php', 'r')) === false) {
            $errormsg = get_string('wwwrooterror', 'install');}
        else {
            fclose($fh);  . . .

fails to open the file for reading.

The folder moodle is owned by "web"
moodle/install.php (also owned by web) has chmod of 777

If I place the code:-
  $temp=$INSTALL['wwwroot'].'/install.php';
  echo("temp is<br>$temp<br>");

before the if statement it returns

"temp is
http://www.scout-enterprises.co.uk/moodle/install.php"

As I would expect - so it is trying to open the above file.

I have run out of ideas - any suggestions

Average of ratings: -
In reply to Patrick de Landre-Grogan

Re: Installation fails - web address does not appear to be valid

by Ger Tielemans -
I had the same problem but cheated: I gave Moodle a handmade config, it is easy enough..
In reply to Ger Tielemans

Re: Installation fails - web address does not appear to be valid

by Patrick de Landre-Grogan -

Hello Ger
Just had a thought about creating a hand made config.
When I successfuly installed moodle on a local machine, the next button went on to implement a lot of sql to create the tables of my "moodle" database.  If I created a config file how would all those tables get created?
Is that all you did - just upload a config file?
Patrick  

In reply to Patrick de Landre-Grogan

Re: Installation fails - web address does not appear to be valid

by Ger Tielemans -
That process will continue..
In reply to Patrick de Landre-Grogan

Re: Installation fails - web address does not appear to be valid

by Bernhard Hiegl -
Look here: http://moodle.org/mod/forum/discuss.php?d=12704
Maybe my method of outcommenting works for you too.

Bernhard
In reply to Bernhard Hiegl

Re: Installation fails - web address does not appear to be valid

by Brad Arant -
The link does not work for me from this page.
In reply to Patrick de Landre-Grogan

Re: Installation fails - web address does not appear to be valid

by Patrick de Landre-Grogan -

Now uploaded OK
In Riard Murphy's thread, Howard Miller states:

"allow_url_fopen needs to be set to true in php.ini" 

So I did that, and it installed.
Thank you to all those that contributed.
I can now start testing.
Patrick 

In reply to Patrick de Landre-Grogan

Re: Installation fails - web address does not appear to be valid

by Bernhard Hiegl -
Here allow_url_fopen has always been set to true! Nevertheless the problem you described above appeared. So this can not be the whole story.
Bernhard
In reply to Bernhard Hiegl

Re: Installation fails - web address does not appear to be valid

by Sean S -
I've got the same problem installing moodle for a client on a server that previously has installed 4 different copies without a problem. I would say that recent changes to moodle have caused the problem.

I checked allow_url_fopen and it is set to on - what else can I do?
In reply to Sean S

Re: Installation fails - web address does not appear to be valid

by Joshua Ellis -

Has anyone figured this out? I'm having the same problem... I have moodle v. 1.4.2... and allow_url_fopen is set to On... so I don't think that was exactly the fix...

So I can't get past page 3 of the installation...

Thanks...

- Josh

In reply to Joshua Ellis

Re: Installation fails - web address does not appear to be valid

by Joshua Ellis -

I figured out that I was getting that error if the moodle directory was not under the DocumentRoot of the web server... I had it Alias'ed to a directory outside of that... when I moved the moodle directory to say.. htdocs, it worked...

Why would that be? The URL doesn't change... I tried looking at the code to figure it out but nothing stood out.....

Help?

- Josh