Environment Checking does not complete with moodle 1.7.1

Environment Checking does not complete with moodle 1.7.1

by Stuart Andrew -
Number of replies: 15

Hi,

Posted elsewhere in this forum are recent notes of my probems installing moodle on a Mandrake 10.1 / 10.2 system.

I have now upgraded my server to Mandriva 2007.0 and all the previously installed software is now working again.  I have installed moodle v1.7.1 and have started to run the install.php script.  All the initial checks pass and the moodle database is found but the next step - Environment Checking - now just hangs with no error message and a page complete.

I have Apache v2.2.3 with php v5.1.6 and MySQL v5.0.24a

Attached is the phpinfo output requested in FAQs.

I noted that a person in Ghana posted an almost identical issue on 7 January for nearly the same software configuration but has not had a reply.

Can anyone help me?

Thanks again in anticipation,

Stuart

Average of ratings: -
In reply to Stuart Andrew

Re: Environment Checking does not complete with moodle 1.7.1

by Mauno Korpelainen -

Check this first: http://moodle.org/mod/forum/discuss.php?d=63204

Do you get php info?

If you can't find the reason try to change to php 5.1.2. With mysql 5.0.24a it will most certainly work. There have been several same kind of situations with Windows machines (surprise) but this should be a working combination for all operating systems. Mysql > 5.0.24 and php > 5.1.2 have some changes that may not work with all OS.

Try to switch error reporting on: 
change the error reporting settings in php.ini and restart Apache
Alternatively, you may find the error from the Apache error log.

 

In reply to Stuart Andrew

Re: Environment Checking does not complete with moodle 1.7.1

by Mauno Korpelainen -

Sorry, I did not notice that php info.

It seems like there are two extensions missing: iconv and mbstring

Did you install them?

In reply to Mauno Korpelainen

Re: Environment Checking does not complete with moodle 1.7.1

by Stuart Andrew -

Hi Mauno,

I have all the php related components installed but I cannot see anything with iconv or mbstring.  Can you give me some more idea of what to look for?

I have enabled error_reporting in php so I will see what that produces.

I have attached the error_log from /var/www/httpd/logs covering the time just now when I ran install.php again.  Does this help?

Cheers,

Stuart

In reply to Stuart Andrew

Re: Environment Checking does not complete with moodle 1.7.1

by Mauno Korpelainen -

If you need rpm resources http://rpmfind.net/linux/rpm2html/search.php?query=php-mbstring to get mbstring

I don't know Mandrake so well but you could use google to find those two php extensions (correct versions).

In reply to Mauno Korpelainen

Re: Environment Checking does not complete with moodle 1.7.1

by Stuart Andrew -
Did you see my error_log in my previous posting?
In reply to Stuart Andrew

Re: Environment Checking does not complete with moodle 1.7.1

by Mauno Korpelainen -

I saw it but I did not read it well enough. I guess I know now the real problem.

It is XML: you have installed xmlwriter and xmlreader but you still need to have domxml and xml to get moodle installed

Read
http://moodle.org/mod/forum/discuss.php?d=58339

In reply to Mauno Korpelainen

Re: Environment Checking does not complete with moodle 1.7.1

by Stuart Andrew -

Hi Mauno,

Many thanks once again for your support; as you can guess I'm not an expert at this wink

I have now learned how to set up the Control Center Media Manager (!!) and I have found and installed php-xml-5.1.6-1mdv2007.0

I did manage to find a version of php-domxml for 2007.0 but the note warned that it should not be used as the dom is included in php5.  I then found php-dom-5.1.6-1mdv2007.0 and installed that instead.

I'm now getting the message shown in the attached error_log file.  I have looked at xmlize.php line 50 but I don't have enough knowledge to understand what it is trying to do.  Can you maybe help me a little once more?

Many thanks,

Stuart

In reply to Stuart Andrew

Re: Environment Checking does not complete with moodle 1.7.1

by Stuart Andrew -
I have just re-run info.php on my system to give you the latest state of play.  See attached.
In reply to Stuart Andrew

Re: Environment Checking does not complete with moodle 1.7.1

by Mauno Korpelainen -

My problem is that I have debian linux myself and it has a little bit different configuration...

One thing is sure: DOM is not at header level in your php info so there is just some small thing missing. I was reading http://www.xmlsoft.org/ and
http://fi.php.net/manual/en/ref.xml.php but did not get an answer what is missing. If you look at http://www.marcelgagne.com/node/377 there is a combination of packages that seem to work fine. I will have a look at your case later - I have my sons birthday today...

In reply to Stuart Andrew

Re: Environment Checking does not complete with moodle 1.7.1

by Stuart Andrew -

Success

I looked at the info.php file and realised myself that it did not show XML!!  It needed a reboot didn't it.  I am now into the next step - I need to get the php extensions for iconv and mbstring now.

For information I have attached the revised info.php file that now does show XML.

Again - many thanks Mauno for your excellent guidance.

Cheers,

Stuart

In reply to Stuart Andrew

Re: Environment Checking does not complete with moodle 1.7.1

by Mauno Korpelainen -

Great!

Php_extensions iconv and mbstring are recommended to be installed/enabled so it is possible that you can install moodle without them too...I hope you find them anyway.

In reply to Mauno Korpelainen

Re: Environment Checking does not complete with moodle 1.7.1

by Stuart Andrew -

All done.  Check it out at http://berrybrow.homeip.net/moodle/

Very basic as of now but it is there!!

In reply to Stuart Andrew

Re: Environment Checking does not complete with moodle 1.7.1

by Mauno Korpelainen -

Hi Stuart,

I visited your site and found out that you have in images and links address http://dogbert/moodle/ but your server (domain) is
http://berrybrow.homeip.net/

Could you check your config.php and variables

$CFG->wwwroot   = 'http://berrybrow.homeip.net/moodle/';
$CFG->dirroot   = '/xxx/yyy/moodle';
$CFG->dataroot  = '/xxx/moodledata'; (or some name instead of moodledata)

dirroot and dataroot should be existing linux path names