I have php 4.3.1 but moodle 1.9 recognized as 5.3

I have php 4.3.1 but moodle 1.9 recognized as 5.3

by Rodolfo Matus -
Number of replies: 3
I have php 4.3.1 but moodle 1.9 recognized as 5.3 and dont permit the install
Average of ratings: -
In reply to Rodolfo Matus

Re: I have php 4.3.1 but moodle 1.9 recognized as 5.3

by Richard Enison -
RM,
  1. You say you have PHP 4.3.1. Does that mean the server is yours, i.e., you are not using a shared web host such as a commercial hosting service?
  2. What evidence suggests Moodle is recognizing the PHP version as 5.3? Is there an error msg. you could post, maybe a screenshot?
  3. Moodle 1.9 accepts both PHP 4.3.1 and 5.3 according to Installing Moodle#Software.
RLE
In reply to Richard Enison

Re: I have php 4.3.1 but moodle 1.9 recognized as 5.3

by Rodolfo Matus -

RLE: 1. yes. This is my own server

2. I repaired writing directly the config.php, but in the envinroment menu continue this error. Moodle is working.

3. I have this bug

Attachment moodle_error_php.JPG
In reply to Rodolfo Matus

Re: I have php 4.3.1 but moodle 1.9 recognized as 5.3

by Richard Enison -
RM,

OK. Now I see why it is not allowing the installation to proceed. It is not recognizing your PHP version as 5.3, which would be acceptable, but as 5.0.3, which is not. PHP 5.0.x is known to be very buggy and incompatible with Moodle. That's why the Requirements section of the Moodle installation doc, Installing Moodle#Software, specifies PHP5 must be at least version 5.1.0. Moodle 2.0 will require an even higher minimum, 5.2.4, and it will not support PHP4.

I know that some commercial hosts make both PHP4 and PHP5 available to their clients. Is it possible that you have both 4.3.1 and 5.0.3? Perhaps it defaults to 5.0.3. If you are using Apache, I can tell you how to get it to use PHP4 instead. But I am not an expert on IIS, and you haven't said which webserver you are using (see Installation FAQ#System_information_needed_for_Installation_problems_forum). [EDIT: Or you could upgrade your PHP5 to 5.1 or higher.

It also might be a good idea to drag your mouse across the red rectangular areas to the right of and below the error msg. about the PHP version, so you can read what it says.]

RLE