installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by renato agura -
Number of replies: 43

hello guys it's my first post and my first time in moodle... i got this report during the server check "version 5.5.31 is required and you are running 5.5.5.10.1.10"  what should I do? im using XAMPP V3.2.2 please help me out...

Attachment Untitled.png
Average of ratings: -
In reply to renato agura

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Usman Asar -
Picture of Plugin developers Picture of Testers

Renato,

are you sure about XAMPP version 3.2.2? as I dont remember seeing 3 and 4 series, after v.1.8.3, it was straight jump to version 5.6+, nothing  in between.

Are you using windows platform?

you can use windows installer package, that comes with everything preset, else if you want to  specifically use XAMPP, then download versions 5.5.33 / 5.6.19 /  7.0.4 all coming with MariaDB 10.1+

In reply to renato agura

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by AL Rachels -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

You are going to need to upgrade your database version. 31 is newer than 5. In those numbers, the period is used as a separator, not as a decimal point, so five.five.five is old version compared to five.five.thirty-one.

In reply to renato agura

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Marina Glancy -
Picture of Core developers Picture of Moodle HQ Picture of Moodle Workplace team Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hello, you need to edit your config.php and specify database as "mariadb" instead of "mysqli"

There is an issue MDL-51080 about improving the error message

Average of ratings: Useful (11)
In reply to Marina Glancy

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Richard Torres -

Thanks for that tip, Marina! Worked like a charm.

Average of ratings: Useful (1)
In reply to Marina Glancy

Trả lời: Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Trong Tri Nguyen -

thanks Marina very much smile

In reply to Marina Glancy

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by MoEiN MusaviPur -

Hi

I Just Want To Test In Windows, i used xampp and this problem ...

I Cant Fix it. Help. In php.ini i cant find database

In reply to MoEiN MusaviPur

XAMMP

by Daniel Newton -

Hello,

I am a novice to all of this Moodle carry on and need some help/advice.

I have XAMPP installed on my laptop which I am using to design a Wordpress website.

I want to install Moodle on the same laptop using the same XAMPP server. Would I be able to do this and would it have any impact on the Wordpress website I am building using the same XAMPP server? If not, would I be able to install a second XAMPP server onto my laptop and use that for the Moodle?


Thanks, Dan

In reply to Daniel Newton

Re: XAMMP

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers

Dan, others might jump in and give you additional ideas.

I too have XAMPP running on my Mac and PCs, and have installed Moodle in each.  I do this for experimentation purposes, especially when not connected to the Internet.  From my knowledge, XAMPP is not meant for "live" Internet users, but you might know if this is possible from your experience with WordPress.  Is your WordPress "live" on the Internet?

Here's a quicky way to install Moodle.

1) Create a new database for Moodle.

2) Create a folder called "moodledata" one level down from your htdocs.

3) Download a copy of Moodle and unzip it into its own folder, such as htdocs/moodle.

4) Type Moodle's URL into your browser, such as http://localhost/moodle3, which will start the install process.

Average of ratings: Useful (1)
In reply to Rick Jerz

Re: XAMMP

by Daniel Newton -

Hello Rick,

Thanks for getting in touch. I am using XAMPP in the design of a website. The website is not yet finished and is not live online yet. Hopefully it will be finished in the next week and I will then put it online. I have opened a HostGator account and I want to integrate Moodle into my website. The website is an English language training site and I am incorporating ELearning tasks, hence the need for Moodle.


I am just worried that if I use the XAMPP installed on my PC for Moodle, it might delete or damage the website I am designing with WP.


What do you think will happen if I use the same XAMPP that I am using for WordPress to run Moodle?

With thanks,

Dan

In reply to Daniel Newton

Re: XAMMP

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers

I am not a WordPress user.  I cannot see any reason why both applications cannot run on the same server, except unless they require different versions of php, possibly.  I am not sure how you plan to organize your website, and there are many ways.  I would put moodle into its own folder, such as "yourdomain.com/moodle" especially if you are trying to make your WordPress be your main website.

I have seen WordPress/Moodle integration discussed here on moodle.org, and there seems to be some ways to integrate the two, but I don't have this need so I really can't advise you.

I have had success developing a new install on XAMPP last December, and then moving it to my production severs.  It's not that hard to do (once you know what you are doing.  smile )

Average of ratings: Useful (1)
In reply to Daniel Newton

Re: XAMMP

by Taiwo Emmanuel -

Just follow the instructions as specified above by Rick Jerz, their will be no reason for interference of application or anything. Have used a single XAMMP installation with various CMS and moodle without any chaos. Just enure you have a separate db created for each applications installed.

BR

Average of ratings: Useful (1)
In reply to Marina Glancy

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Dave Hope -

Excellent, thanks Maria - worked like a charm!

In reply to Marina Glancy

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Azeem Abbas -

Please clarify about the error issue.

After editing the config.php file I'm receiving the error:

"Config table does not contain version, can not continue, sorry.

More information about this error

It is usually not possible to recover from errors triggered during installation, you may need to create a new database or use a different database prefix if you want to retry the installation."

I clicked on the link and got this:

The most likely cause of this error is that the 'version' key is missing from your configuration dictionary.
Steps to fix:
  • Open <moodleinstalldir>/version.php
  • Find the value in $version
  • Open 'mdl_config' in database manager
  • Insert key after last entry with name = 'version' and value = <value found in version.php
Please help me sort out this problem.


In reply to Azeem Abbas

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

What did you change in config.php?

In reply to Marina Glancy

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by bipin gaur -

Thank you Marina, I looked around and tried at least 20 different configuration, yours worked the first time .

In reply to Marina Glancy

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Andreu Martí -

Thank you very very much Marina! I was trying to install different MariaDB versions in order to get rid of the warning message until I found your post.

All the best!

Andreu.-

In reply to Marina Glancy

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by sadaf sadafian -

Excellent, veryyyyyy thanks Maria

In reply to Marina Glancy

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Ronil Chand -

thanks so much from Fiji...........was of great help

In reply to Marina Glancy

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by syed adil -

@Marina you said, Hello, you need to edit your config.php and specify database as "mariadb" instead of "mysqli"


How do i go to config.php. Where is it located?

Can you give me a step by step guidance, i am new to this.

In reply to syed adil

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Clément Michard -

I think it's the /.../moodle/config.php file

In reply to Marina Glancy

It doesn't work for me

by Clément Michard -

Hi there, 


I'm a total newbie at this, and I tried to install moodle on a local server on windows 10 (no one's perfect) (to try it, figure out the pb I could encounter, etc), so I began with Wamp, and it failed, so I migrated to Xampp, and the creation of the localhost worked fine. Until I tried to install moodle, and this error showed up. 

So, firtly, thanks for this post. Then, I chnaged the 'mysqli' to 'mariadb', rebooted apache and mysql (via Xampp), re-entered "localhost/moodle/", and it shows still the same error. Did I do something wrong ?


I noticed someone said to migrate to xampp 5.6 or higher, but I could'nt find it, and the version I've got aired feb 1...


thanks a lot

In reply to Marina Glancy

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by aditya singh -

Thanks Marina, this worked for me, hope we can have a setting for that in in our installation form.

In reply to Marina Glancy

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Cornelius Ehmke -

Search for the string "$CFG->dbtype" This should show you the line you're looking to change.

In reply to Marina Glancy

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Jeziel Pereira -
Marina,

Thank you very much.

I applied your suggestion and worked perfectly.

I translated your post to the Portuguese and sended to another groups in this language.

God bless you.

Jeziel


In reply to Marina Glancy

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Sunil Chhipa -

Excellent..!! Thanks, Marina Glancy..!!

In reply to Sunil Chhipa

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by James Steerpike -

Caught me as well running Debian Stretch. Glad your post pushed this up where I noticed it a few days ago.

In reply to Marina Glancy

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Gerald Grow -

Just to clarify with some specific steps. If I left out any, please add them:

By the time the installation stops on the page of server checks, it has already created a moodle folder with a config.php inside it.  

Go to that config.php, open it in an editor, and change the line that specifies the db to mariadb, like this:

$CFG->dbtype    = 'mariadb';

After saving this change, return to the Moodle installation page where it stopped. Reload it.

If all is well, the installation should now continue. 

Average of ratings: Useful (1)
In reply to Gerald Grow

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Gerald Grow -

Whoa! I think I have the solution. Does this work for you?

If your server uses mariadb, choose mariadb from the dropdown menu in early stages of the installation process.

Then the installation will no longer stop with the confusing message claiming that you have the wrong version of mysql.

The ideal error message would say that the database you specified does not match the one that is running. 

The workaround I posted above -- editing the config.php file -- also works, but it is unnecessary. 



Average of ratings: Useful (1)
In reply to Marina Glancy

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Makmesh iKiev -

Thanks, that was really helpful

In reply to Marina Glancy

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Atif Azad -

Awesome! Thanks Maria, That's work for me also 

In reply to Marina Glancy

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by tim st.clair -
Picture of Plugin developers

 Thanks for the tip! I came across it because I initially installed on a MySQL box (and hence chose mysqli as the driver) then moved the site to a different box with Maria DB 10.2.10 before the upgrade to Moodle 3.4. Be good to have this changed / mentioned during the upgrade step, perhaps show the current db driver setting?

In reply to Marina Glancy

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Suchit Nikam -

hi marina,

my config.php file already "mysqli" present. so why see this problem,

please help me.


thank,

Suchit Nikam

In reply to Suchit Nikam

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Matteo Scaramuccia -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hello,
just re-read this thread, especially https://moodle.org/mod/forum/discuss.php?d=330272#p1433397 .

HTH,
Matteo

Average of ratings: Useful (1)
In reply to Marina Glancy

Trả lời: Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Bao Do Quoc -

Thank Marina!

In reply to Marina Glancy

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Jamyang Kuenga -
Thanks Marina... 
In reply to Marina Glancy

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Faisal Maqsood -

Thanks . You  fix my problem smile

In reply to Marina Glancy

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Paul Raper -

Brilliant Marina, changing from MySQL to Maria solved the problem in a blink.

In reply to Marina Glancy

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Eswar sfc -

Thanks maam,i changed mysqli to  mariadb it worked for me

In reply to Marina Glancy

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Jonathan Haack -

For those using Debian on a common LAMP stack, with default virtual host configuration

cd /var/www/html/moodle

sudo nano php.config

As Marina directs, change the line with mysqli to mariadb and everything works fine.


In reply to renato agura

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Rahul Rai -

Hi Renato

I thing what is you problem facing.

Moodle’s upgrade check gives only the error: “version 5.5.31 is required and you are running 5.5.5.10.0.20”. This error leads to things like issue #45070 and not the fix in the blog.

In reply to Rahul Rai

Re: installation (version 5.5.31 is required and you are running 5.5.5.10.1.10)

by Paul Raper -

But have you checked the database type in the config.php file?

Average of ratings: Useful (1)