Koozali.org: home of the SME Server

Installing moodle

Offline jwarra

  • 4
  • +0/-0
Installing moodle
« on: October 25, 2007, 04:29:46 PM »
I have just been introduced to sme and now trying to get moodle to work. Have found the rpms at Dungog but stumped at how I can get them installed on the server. Downloaded putty so could ssh to server, allowing me to work on it from home.
Any ideas or commands to get it all working would be appreciated. I feel once I crack this nut then other installs should be easier.

Thanks

Jim

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: Installing moodle
« Reply #1 on: October 25, 2007, 11:21:34 PM »
Here's the howto on installing Moodle on SME: http://wiki.contribs.org/Moodle

Once you connect to your server using putty, you can easily copy and paste the suggested commands into your server.  In your browser, highlight the command.  Move your cursor over the putty window and click the right mouse button - voila!

The first bock of commands is really one single command, so copy and paste the whole block into your server's command window:
Code: [Select]
/sbin/e-smith/db yum_repositories set dungog repository \
Name 'SME Server 7 - dungog' \
BaseURL 'http://sme.dungog.net/packages/smeserver/7.0/i386/dungog/' \
EnableGroups yes \
GPGCheck no \
Visible no \
status disabled

The back-slashes at the end of the first 6 lines tell Linux to ignore the 'newline' character that comes next and continue on the next line.

repeat the same copy-and-paste process for the next 2 commands (expand-template..., yum enablerepo=...)

I've never used Moodle, so I don't know what happens when you're done with the 'HowTo'...

Offline johnhebert

  • *
  • 11
  • +0/-0
Re: Installing moodle
« Reply #2 on: October 26, 2007, 05:25:31 PM »
I recently installed Moodle on SME 7.2 from Dungog.
I couldn't get the Dungog repository to work with Yum so I just downloaded the Dungog Moodle files on my laptop.
I then copied them into the files directory in the primary i-bay.
Next I used PuTTYPortable on my laptop to SSH into SME and did a Yum local install as follows:
yum localinstall moodle smeserver-moodle
After the install is complete do signal event post-upgrade and signal-event reboot
Then go to http://servername/moodle to complete configuration
I am using POP3 user authentication which is nice because it uses existing SME users to authenticate in Moodle
Hope that helps

Offline jwarra

  • 4
  • +0/-0
Re: Installing moodle
« Reply #3 on: October 26, 2007, 05:43:35 PM »
Thanks for your help, I also had trouble getting yum to work so will try downloading to primary.

Jim

Offline jwarra

  • 4
  • +0/-0
Re: Installing moodle
« Reply #4 on: October 27, 2007, 11:53:00 AM »
I downloaded the rpms from dungog.

placed them in the files directory of Primary and did the yum below.

Any suggestions to get rid of 'cannot open' would be great.

[root@pcss1 ~]# yum localinstall moodle smeserver-moodle
Loading "fastestmirror" plugin
Loading "smeserver" plugin
Setting up Local Package Process
Cannot open file: moodle. Skipping.
Cannot open file: smeserver-moodle. Skipping.
Nothing to do

Must be doing somethimng stupid as the wiki reckons its easy. I suppose it is if you know how.

Thanks

Jim

Offline skydivers

  • *
  • 178
  • +0/-0
Re: Installing moodle
« Reply #5 on: October 27, 2007, 12:12:32 PM »
I downloaded the rpms from dungog.

placed them in the files directory of Primary and did the yum below.


Then you should also install them from the files directory. cd to the right directory and do localinstall from there...

Offline ronnie

  • 1
  • +0/-0
Re: Installing moodle
« Reply #6 on: October 27, 2007, 04:07:13 PM »
It should be noted that the command to install using the Dungog repo is malformed.

yum enablerepo=dungog install moodle smeserver-moodle

The above is in the wiki, when it should be

yum --enablerepo=dungog install moodle smeserver-moodle

Note the double hyphen above. I just installed Moodle to test out the install procedure and it worked fine.

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: Installing moodle
« Reply #7 on: October 27, 2007, 05:11:30 PM »
Quote from: ronnie
yum --enablerepo=dungog install moodle smeserver-moodle
I've updated the wiki to reflect ronnie's correction.

Offline jwarra

  • 4
  • +0/-0
Re: Installing moodle
« Reply #8 on: October 28, 2007, 11:30:46 AM »
Tried the yum --etc but got missing gd dependancy.

[root@pcss1 ~]# yum --enablerepo=dungog install moodle smeserver-moodle
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "fastestmirror" plugin
Loading "smeserver" plugin
Setting up Install Process
Setting up repositories
dungog                    100% |=========================|  951 B    00:00
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package smeserver-moodle.noarch 0:1.0-4.el4.sme set to be updated
--> Running transaction check
--> Processing Dependency: gd for package: smeserver-moodle
--> Finished Dependency Resolution
Error: Missing Dependency: gd is needed by package smeserver-moodle


Any  ideas most welcome as nearly there.

Thanks

Jim

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: Installing moodle
« Reply #9 on: October 28, 2007, 03:29:42 PM »
I just installed it from the dungog repo with no problem, using the updated yum --enablerepo....

My system seems to have already had gd installed (at least I have it installed, and /var/log/yum/yum.log does not say I just installed it...)

You could try simply installing gd using yum install gd or yum --enablerepo=dungog install gd

Or, as with any yum problem, try yum clean all, then try to install again.

[edit]
On a more 'virgin' SME 7.2 system I found that I did not have gd installed.  yum install gd found it in the 'base' repo - so you may want to make sure that your yum repository configuration is correct.  Unless you installed SME 7.2 from CD on brand new hardware you need to update your yum repository configuration if you haven't already done so as shown in item 2. of the 'Yum Update' instructions here: http://wiki.contribs.org/Updating_to_SME_7.2#Yum_Update.  After resetting your yum repositories, you will have to re-add the dungog repository.
[/edit]
« Last Edit: October 28, 2007, 03:35:28 PM by mmccarn »