Upgrading to moodle 2.9.2 from 2.2

Upgrading to moodle 2.9.2 from 2.2

by s w -
Number of replies: 5

We are trying to upgrade to 2.9.2 from 2.2

I moved the old files from Server/htdocs/moodle to a different directed, extracted the files for 2.9.2 into Server/htdocs/moodle, placed old config.php in the moodle directory and when I go to out moodle site to start the upgrade process I get following error.

Parse error: syntax error, unexpected '[' in \server\apache\htdocs\moodle\lib\filelib.php on line 3053 

HAs anyone encountered it before.

Average of ratings: -
In reply to s w

Re: Upgrading to moodle 2.9.2 from 2.2

by Usman Asar -
Picture of Plugin developers Picture of Testers

are you using the correct version of PHP? as for 2.2 it was PHP 5.3.x whilst for Moodle 2.9 its 5.4.4

In reply to Usman Asar

Re: Upgrading to moodle 2.9.2 from 2.2

by s w -

I am running 5.3.13. I will try that.

Thanks

In reply to Usman Asar

Re: Upgrading to moodle 2.9.2 from 2.2

by s w -

I upgraded to PHP 5.5.3 and then I had to upgrade to apache 2.4 as apache 2.2 didn't work. I got the Moodle 2.2 site up but the LDAP authentication is not working. In apache 2.2 in httpd.conf file I had following. but it looks like apache 2.4 doesn't have ssPI but I need to use module mod_authnz_ldap. How do i change my configuration to use this? I have been trying for quite some time. Any help will be appreciated.


httpd.conf for Apache 2.2

<IfModule !mod_auth_sspi.c>

   LoadModule sspi_auth_module modules/mod_auth_sspi.so

</IfModule> 

<IfModule ssl_module>

SSLRandomSeed startup builtin

SSLRandomSeed connect builtin

</IfModule>

<Directory "\server\apache\htdocs\moodle\auth\ldap">

       <Files ntlmsso_magic.php>

           AuthName "ourname"

           AuthType SSPI

           SSPIAuth On

           SSPIOfferBasic Off

           SSPIAuthoritative On

           SSPIDomain "ourDomainname"

           require valid-user

       </Files>

 </Directory>


In reply to s w

Re: Upgrading to moodle 2.9.2 from 2.2

by Jon Witts -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

You don't need either of those for LDAP Auth though... You just the PHP5 LDAP module loaded in your PHP install... Apache does not handle the LDAP requests with Moodle; PHP does...