installation problem - php version?!?

installation problem - php version?!?

by Luis Sousa -
Number of replies: 2

Hello,

I have recently tried to install moodle on my web server but during the installation i get the following message :

php É requerida a versão 4.3.0 e está a correr a versão 5.0.4 Restrito

in english : "you need version 4.3.0 of php and you are running version 5.0.4"

Is there any way around this?

Best Regards

Attachment moodle.JPG
Average of ratings: -
In reply to Luis Sousa

Re: installation problem - php version?!?

by Ken Wilson -

Hi Luis

The English text from lang/en_utf8/install.php reads: "PHP version must be at least 4.3.0 or 5.1.0 (5.0.x has a number of known problems)" - which explains why the installer will not proceed with php version 5.0.4. Looks like there was a problem in the translation.

In theory, you could try to skip the php version check by commenting-out the print_compatibility_row line underneath the line "Check that PHP is of a sufficient version" in moodle/install.php - but this may lead to many more problems later on sad. The best way forward is to follow the advice and upgrade to php 5.1.0 or later.

Ken

In reply to Ken Wilson

Re: installation problem - php version?!?

by Luis Sousa -

hi there,

i can't upgrade php version because the server is not mine.

tried to coment the line but that didn´t work...still have the same problem...

/// Check that PHP is of a sufficient version
            ///print_compatibility_row(inst_check_php_version(), get_string('phpversion', 'install'), get_string('phpversionerror', 'install'), 'phpversionhelp');
            /// Check session auto start