Upgrading Moodle on Shared Hosting

Upgrading Moodle on Shared Hosting

Jeremy DeStefano發表於
Number of replies: 2

Ok, I seem to be in a bit of a pickle.  Currently running Moodle 2.9 on Hostgator.  They recently attempted to kill off PHP 5.4, which broke Moodle.  I was able to get them to revert back for the time being while I planned my upgrade.  The problem I'm running into while trying to get to 3.1 is that its telling me I need to enable Large_Prefix.  Hostgator won't do this, saying I need to upgrade to VPS/Dedi which at the moment, I cannot justify.    They do support newer versions of Moodle if installed through their script installer, but it seems they are able to get around the large prefix requirement somehow.  And even if I did a fresh install, is there a way to import everything from my existing DB?

I guess I'm just looking for some insight from someone who knows Moodle a bit better than I do that can help me figure out a path to get upgraded.  

評比平均分數: -
In reply to Jeremy DeStefano

Re: Upgrading Moodle on Shared Hosting

Ken Task發表於
Particularly helpful Moodlers的相片

First thing I'd do ... a site backup.  code directory + database dump + moodledata directory (moodledata/filedir minimal).  You should have something like cPanel tools to do that.

Download the backups to your local computer.

Second thing I'd do ... make a backup of each course ... with users.

Download each course backup.

Large Prefix is a database server tweak ... you don't have access enough on shared hosting to tweak settings for the DB server which is shared.

About them getting round it .. not really round it ... just using a different DB server that does have Large Prefix and other settings as default that happen to meet requirements for higher version of Moodle.

'.... need to upgrade to VPS/Dedi which at the moment, I cannot justify ...'

By justify do you mean cost?  As far as requirements for higher versions of moodle, should you continue to use moodle, that's justified in a technical sense.

Not only are DB server tweaks needed but also version of DB server and version of PHP just prior to upgrading versions higher than your 2.9.x in a 'march' of your moodle upwards.

Please see:

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

And, begin with the firist hop upwards to 3.1.highest info:

https://docs.moodle.org/dev/Releases

https://docs.moodle.org/31/en/Upgrading

If your site is still up, login as admin, go to admin menu, Server, Environment.   Update the component.   In the drop down pick list for choosing the target version of Moodle information on environment page should change telling you what is needed prior to the attempt to upgrade to version selected in the drop down.

Also ... do you have any addons/plugins?   Those may/may not have kept up with newer versions of Moodle.   Check  https://moodle.org/plugins/ for the plugins you have in your 2.9.x to see if there is a compat version for destination version.

Note: themes are plugins ... you will be changing your theme along the way.

Please check your PM messages on this system.

'SoS', Ken