Koozali.org: home of the SME Server

Moodle and SME 9?

Offline Slavko

  • 6
  • +0/-0
Moodle and SME 9?
« on: May 06, 2018, 02:54:10 PM »
Is it possible to install Moodle on SME 9?

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: Moodle and SME 9?
« Reply #1 on: May 06, 2018, 04:10:50 PM »

Offline Slavko

  • 6
  • +0/-0
Re: Moodle and SME 9?
« Reply #2 on: May 06, 2018, 05:41:23 PM »
I tried it but no success.

Code: [Select]
yum --enablerepo=smecontribs install moodle smeserver-moodle
...
No package moodle available.
No package smeserver-moodle available.
Error: Nothing to do

Offline Jean-Philippe Pialasse

  • *
  • 2,746
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Moodle and SME 9?
« Reply #3 on: May 06, 2018, 06:18:47 PM »
I tried it but no success.

Code: [Select]
yum --enablerepo=smecontribs install moodle smeserver-moodle
...
No package moodle available.
No package smeserver-moodle available.
Error: Nothing to do

Seems like it not been ported since sme 7 : https://wiki.contribs.org/SME8.0_Contribs_QA#smeserver-moodle. This means you are the very first one needing it since 2011 ;), or just migrated from SME 7 ;)


Also since CentOS5/SME8 there is a rpm for moodle in epel repo. However the 2.6 branch here for SME9 is a stall branch according to https://github.com/moodle/moodle/branches/stale

Your best shot, unless you have few time to give to the community is to install last version in an Ibay and get the required configuration via template custom if not found with the esmith db options.
Also you will need few programs up yo date looking at https://docs.moodle.org/dev/Moodle_3.4_release_notes


- Php 7 could be obtained using php scl or better php fpm contribs
- you might need to seek what php moduls are needed and not present in base install
- mysql 5.5 is available as a contribs

You can do a follow up on your advencement here, so we can help, and this could be a first step to create a how toor help to upgrade the contrib



« Last Edit: May 06, 2018, 10:04:22 PM by Jean-Philippe Pialasse »

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Moodle and SME 9?
« Reply #4 on: May 06, 2018, 06:30:51 PM »
jsk

Here are links to the sme7 rpms
You could try manually downloading & yum local installing them to see what happens.
Moreso refer jpp comments.

http://mirror.pialasse.com/releases/obsolete/7.6/smecontribs/x86_64/RPMS/

http://mirror.pialasse.com/releases/obsolete/7.6/smecontribs/i386/RPMS/
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline michelandre

  • *
  • 261
  • +0/-0
Re: Moodle and SME 9?
« Reply #5 on: May 07, 2018, 04:10:18 AM »
Hi all,

I installed Moodle-2.2.6 on SME-8.0 in december 2012 and made a doc in French about it: https://www.micronator.org/?page_id=130.

At the time, I made a note as a more recent version of Moodle needed a version of MySQL more recent than the one that was available in SME-8 at the time. With SCL it should be possible to install a version quite a bit more recent than 2.2.6. I never tried Moodle on SME-9.x.

Note:
I have just re-read my old documentation and I am convinced that it must be easily possible to install Moodle on an SME-9 server by following the 2.2.6 installation and adjusting for SME-9. In my documentation I download Moodle using GIT that I have already installed for MediaWiki on a SME-9: https://www.micronator.org/?page_id=2909.

Michel-André
« Last Edit: May 07, 2018, 04:45:29 AM by michelandre »

Offline Slavko

  • 6
  • +0/-0
Re: Moodle and SME 9?
« Reply #6 on: May 07, 2018, 10:23:22 AM »
I finally installed Moodle for SME7 rpms according (yum localinstall) to https://wiki.contribs.org/Moodle and then upgraded it to version 2.2. It seems to be okay.

Thank you all for your feedback.
« Last Edit: May 07, 2018, 10:28:22 AM by jsk »

Offline Jean-Philippe Pialasse

  • *
  • 2,746
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Moodle and SME 9?
« Reply #7 on: May 07, 2018, 04:05:01 PM »
I finally installed Moodle for SME7 rpms according (yum localinstall) to https://wiki.contribs.org/Moodle and then upgraded it to version 2.2. It seems to be okay.

Thank you all for your feedback.
thanks for the report
this means itis worth being imported for SME9.
are you happy with version 2.2 or need a newer one ?

Offline michelandre

  • *
  • 261
  • +0/-0
Re: Moodle and SME 9?
« Reply #8 on: May 08, 2018, 03:53:46 AM »
Hi Jean Philippe,

I found an old SME-9.0 VM with Moodle-2.6.7 installed and running well.
I updated to SME-9.2 and still running.
Installed SCL and updated again. Run well with PHP-5.6.
SCL set PHP-7.1. Not working - white screen.
Returned to PHP-5.6 and working again.
Set PHP-7.1, rename directory to Moodle-old and tried to update to Moodle-3.1. The rights are a little bit tricky but got it and Install was able to write to the top dir but the last installation step not working = error accessing Database.
Rename Moodle-old back to Moodle, return to PHP-5,6 and Moodle-2.6.7 and working again.

For sure, Moodle-2.6.7 is running on SME-9.2,

Michel-André


« Last Edit: May 08, 2018, 03:55:38 AM by michelandre »

Offline Slavko

  • 6
  • +0/-0
Re: Moodle and SME 9?
« Reply #9 on: May 08, 2018, 01:21:12 PM »
Hi,

Thanks for pointing this out.
I succesfully upgraded Moodle 2.2 running on SME 9.2. to Moodle 2.6.7.

Slavko

Offline Jean-Philippe Pialasse

  • *
  • 2,746
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Moodle and SME 9?
« Reply #10 on: May 08, 2018, 02:58:21 PM »
 the moodle doc is pretty clear on the php support for php with 2.6 versions : https://docs.moodle.org/dev/Moodle_2.6_release_notes#Requirements : 5.3 to 5.6
again those are not supported anymore

before losing time doing test, read the available doc : all releases :  https://docs.moodle.org/dev/Releases

current supported release are 3.1LTS and 3.4  https://docs.moodle.org/dev/Releases#Moodle_3.1_.28LTS.29 :

for 3.1 LTS: PHP version: minimum PHP 5.4.4 (always use latest PHP 5.4.x , 5.5.x or 5.6.x on Windows - http://windows.php.net/download/). PHP 7.0.x is supported but has some engine limitations. PHP 7.1.x is not supported.  Ghostscript should be installed for pdf annotation. Unoconv should be installed for file conversion used by pdf annotations (new in Moodle 3.1) New requirement for Moodle 3.1 comparing to 3.0: PHP extension xmlreader


for 3.4: PHP version: minimum PHP 7.0.0 Note: minimum PHP version has increased since Moodle 3.3. PHP 7.1.x and 7.2.x are supported too. PHP 7.x could have some engine limitations.

for php again you just have to install and select the appropriate version using : https://wiki.contribs.org/PHP_Software_Collections; or better the php-fpm contribs that will install when you install last version of webapps-common https://wiki.contribs.org/Webapps-common however documentation is poor yet on how to configure it.

both requires :     mysql 5.5.31  available here https://wiki.contribs.org/Software_Collections:MySQL55