Upgrading to moodle 2.9.2 from 2.2

Upgrading to moodle 2.9.2 from 2.2

wót s w -
Anzahl Antworten: 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.

Als Antwort auf s w

Re: Upgrading to moodle 2.9.2 from 2.2

wót Usman Asar -
Nutzerbild von Plugin developers Nutzerbild von 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

Als Antwort auf Usman Asar

Re: Upgrading to moodle 2.9.2 from 2.2

wót 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>


Als Antwort auf s w

Re: Upgrading to moodle 2.9.2 from 2.2

wót Jon Witts -
Nutzerbild von Particularly helpful Moodlers Nutzerbild von Plugin developers Nutzerbild von 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...