Problem with Wizard Installer

Problem with Wizard Installer

Francesco Napolitano -
回帖数:10

Hello, I am a newbie with moodle and I newd a little help to figure what I am missing with the installation.

I tried to launch moodle 4.1 installer on a website but this doesn’t work, since the wizard says I must have an updated version of Mariadb I actually don’t use.

How can I ask the wizard to install moodle in Mysql?

Help appreciated

回复Francesco Napolitano

Re: Problem with Wizard Installer

Gareth J Barnard -
Core developers的头像 Particularly helpful Moodlers的头像 Plugin developers的头像
回复Gareth J Barnard

Ri: Re: Problem with Wizard Installer

Francesco Napolitano -

I mean in cpanel.

There is an automated installer between the apps I can install on my website.

However, when I run the installer, the error says I must update MariaDb, that I don’t use.

Can I install moodle using mysql? Where am I supposed to point to thay?

回复Francesco Napolitano

Re: Ri: Re: Problem with Wizard Installer

Ken Task -
Particularly helpful Moodlers的头像

Moodle doesn't have a 'Wizard' installer.
Official install docs:
https://docs.moodle.org/401/en/Installing_Moodle

If you wish to continue look in the installer (probably called Softaculous) window on server upper right hand corner for a link to Softac Support

Why's that not supported in these forums?   It's proprietary software ... not open source. Besides that, it's commercial ... part of your hosting fee goes towards Softac 'wizards'.

To answer your question about DB server ... if you host with a shared hosting package from provider, they make the decisions about DB server for you.  Moodle code will work with MySQL and MariaDB.   You won't see MariaDB icons in your cPanel ... only MySQL icons ... but those work with MariaDB as well as MariaDB (earlier versions) are supposed to be a 'drop in replacement' for MySQL.

See chart for version of Moodle and versions of PHP/MySQL/MariaDB required.:

http://www.syndrega.ch/blog/#php-and-dbms-compatibility-of-major-moodle-releases

'SoS', Ken


回复Ken Task

Ri: Re: Ri: Re: Problem with Wizard Installer

Francesco Napolitano -
Hello Ken and thanks a lot for your answer!
Now everything is a lot clearer. I checked on phpmyadmin and I actually see that I have a mariaDb 10.3 which is not compatible with moodle 4.1.
As far as you know, is it advisable to install an older version even if moodle doesn’t recommend it?
Basically I have to upgrade a 2.6 version to a more recent one, so I believe that any of them can fill my needs. It’s just important to have a compatibility with php 7.4 or more and with 2.6 course/users backup file I made earlier.
回复Francesco Napolitano

Re: Ri: Re: Ri: Re: Problem with Wizard Installer

Visvanath Ratnaweera -
Particularly helpful Moodlers的头像 Translators的头像
If you referred the chart Ken has given, you'll know that Moodle 3.8 to 4.1 are compatible with PHP 7.4.

MariaDB 10.3 is a different story. I'll leave it to you as an exercise. The information is there, in the same chart.

P.S. You might want to tell the Italian community https://moodle.org/mod/forum/discuss.php?d=442963#p1780728 that you are getting answers here in the English community.
回复Francesco Napolitano

Re: Ri: Re: Ri: Re: Problem with Wizard Installer

Ken Task -
Particularly helpful Moodlers的头像

See: https://docs.moodle.org/dev/Releases
https://docs.moodle.org/dev/Releases#Version_support
3.9 is an LTS and does have support for security fixes until date shown in above link.

How many courses are we talking about?

If you are going to attempt a 2.6 site march, you need to refer to:
http://www.syndrega.ch/blog/#php-and-dbms-compatibility-of-major-moodle-releases for php/mysql/mariadb versions.

Notice I said 'march'.   The only way one could march a site from 2.6 to X highest
is with a VPS where you have full control over the package manager and can on a temp basis install older/compatible versions of PHP + extensions and MySQL/MariaDB DB server. And then at an appropriate time in marching moodle code, upgrade those as well.

Command line march is highly recommended and thus the first task is to get the 2.6 core code under git versioning ... you need a hosting setup that has git then ... and command line access.

You could setup a virtualbox OS on a laptop install AMP stack with starting versions you need, then work on getting the 2.6.x working under git.   Once successful there, march the moodle upwards version wise until you've reached the version that can be supported on server.   Then do a site migration to server.

You'd also need to check add-on plugins the 2.6 was using to see if there are upward  compatible versions for destination versions as you march.
That includes 3rd party themes.   Basic rule: if not compatible, it goes! (deal with it!)

Another approach ... not 100% - install the highest version of moodle you can and try restoring course backups.   Again, if you can, use git and a command line tool called moosh which will enable restores of course backups to an existing category in moodle.

So 2 things ... you're not in Kansas anymore (Yellow Brick Road - no wizards of which I am aware ... and there ain't no 'Easy Buttons' ... period! (depending upon how many courses we are talking about!)

'SoS', Ken


回复Ken Task

Ri: Re: Ri: Re: Ri: Re: Problem with Wizard Installer

Francesco Napolitano -

Thanks again.

I tried to update the old 2.6 version to a 3.x (I don’t remember which one at the moment) but I had no luck. Moodle said something like ‘there are files working with Php 5.6 and files working with Php 7.4”, so I gave up with this, restored back the site to php 5.6 and moodle 2.6 too.

After this I decided to perform a full new installation of moodle into another folder.

The  2.6 moodle seems not to have any plugin installed, there are only three courses with test loaded and a hundred of users (the site doesn’t belong to me, if you’re asking). 

I am sorry to look a newbie, but it’s exactly what I am with moodle 😓

回复Francesco Napolitano

Re: Problem with Wizard Installer

Visvanath Ratnaweera -
Particularly helpful Moodlers的头像 Translators的头像
You can transfer those users and the test (quiz) questions to the new site through various export-import formats and methods and continue on from there, if that is an easy alternative.
回复Francesco Napolitano

Re: Ri: Re: Ri: Re: Ri: Re: Problem with Wizard Installer

Ken Task -
Particularly helpful Moodlers的头像

No need to apologize ... moodle is a different beast! 微笑

Before you play much more, make full user backups of those courses and download those backups to your local machine.  How large are those backup .mbz files?   With only 3 courses your path of least resistance is to restore those backups to a newer version of freshly installed high as you can go Moodle knowing that eventually will require some more putzing with this site in the near future.

A goal would be to get to a long term support version of moodle ... right now highest is 4.1 ... but due to hosting you might not be able to do that ... so a 3.9.highest then.  Which leads to ...

Does/Can hosting provider move account to a shared hosting environment that has Terminal/Git?   Yes, that will cost more.

When you log into cPanel, do you see a Terminal icon?  a Git icon?  In right column of the cPanel screen what does it say for DB version?  specs?  Inode limits?   Exactly what DB server running? and version?  What is the highest PHP avalable to you?

When providing information, you have to be more precise and know ... not 'seems not to have'.   Uhhh ... a theme is a plugin!

 'SoS', Ken


回复Ken Task

Ri: Re: Ri: Re: Ri: Re: Ri: Re: Problem with Wizard Installer

Francesco Napolitano -
Hello again!
I easily manage to install the 2.9 LMS version of moodle. I used a different path from the 2.6 and a different database so I could easily switch from a version to another.
The only problem I still have is that after the restore, I can’t see the uploaded test and the course. Moodle says that the restore was done correctly, but I only find the users.
Could it be a problem of privileges, since I had to create another user to work on the platform, as moodle said admin restore could cause conflicts?
For the moment, a huge thank you to all pf you who supporter me in this topic!