Koozali.org: home of the SME Server

Problem with dungog moodle install

Offline shell

  • ****
  • 117
  • +0/-0
Problem with dungog moodle install
« on: July 26, 2007, 07:10:21 AM »
Hey all,

just wanted to check if anyone has had joy with installing the brilliant moodle / smeserver-moodle contrib from dungog on 7.2

i have tried on two different servers this afternoon both with the same results so i'm thinking its an issue with the 7.2 upgrade - but as always i could be wrong!  so was hoping for feedback.

i am yum installing the following versions:
(yum install moodle smeserver-moodle)

moodle-1.8.1-1
smeserver-moodle-1.0-1

using the instructions here:
http://wiki.contribs.org/Moodle

there is an indication of an error with the expand-template part of this install - the 20db fragment line 4.  but i haven't been able to resolve.

the /opt/moodle/html config.php doesn't appear to be updated and even removing the template fragments and entering the details directly into the config file (with a httpd restart and as a test) doesn't resolve the issue , which is that visiting:

 http://myserver/moodle

gives the first part of the install but with no template applied - the text is all times new roman on white page.  the install can be continued through, with successes reported at every stage (although the continue button opens admin/install.php without the myserver/moodle part in front and so it is needed to be input at each step.)  obviously not all is as it should be!

Oddly enough this will continue and the site appears to operate however again no theme is applied.  which i can't understand as the templates appear to hold the db username and password info and this data also appears not to have been passed into the /opt/moodle/html/config.php file

 :?: any thoughts would be muchly appreciated...

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Problem with dungog moodle install
« Reply #1 on: July 26, 2007, 08:37:42 AM »
Quote
gives the first part of the install but with no template applied - the text is all times new roman on white page.

The only time that i experienced this was when i forgot to set the proper permissions (chmod the files and folders) but i don't use moodle so i suggest that you check the permissions first and go from there.
"It should just work" if it doesn't report it. Thanks!

Offline shell

  • ****
  • 117
  • +0/-0
Problem with dungog moodle install
« Reply #2 on: July 26, 2007, 11:04:45 PM »
Yep, that was one of the things i tested (having seen similiar issues with other management systems).  So (and again for testing!) I chmod -R 777.  Same issue.

After checking on the second machine (and yum remove a number of times!)

Resolved the issue by altering line 4 of the /etc/e-smith/templates/opt/moodle/html/config.php/20db template fragment (those pesky error messages usually mean what they say! :roll: )

The original line was in the format :
Code: [Select]
my $wwwroot = "http://$moodle{domain}" || "http://$DomainName/moodle";

(note no line breaks)

I changed it to :
Code: [Select]
my $wwwroot = "http://mydomain.name/moodle";

then expanded the template:

Code: [Select]
expand-template /opt/moodle/html/config.php

Please note that the moodle and smeserver-moodle rpms do infact do all the permissions on the /opt/moodle folder perfectly!

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Problem with dungog moodle install
« Reply #3 on: July 27, 2007, 12:42:52 PM »
I suggest that you open a bug for moodle so that the packager knows about your problems and fixes it for others.
"It should just work" if it doesn't report it. Thanks!

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
Problem with dungog moodle install
« Reply #4 on: July 29, 2007, 11:23:46 AM »
Please do
this quality of bug report makes it easy to fix


smeserver-moodle-1.0-2

* Sun Jul 29 2007
- 20db template fixed

mxkz

Problem with dungog moodle install
« Reply #5 on: July 31, 2007, 02:25:02 PM »
that makes complete sense.

I have had the same issues when moving moodle installs.


Moodle keeps its location for all templates, images, css etc in a config file.

U know when u install moodle, you have to type the address where moodle is installed.

After, all the images etc on the page refer to their folders trailing the domain/location you specified.

Is the config file you discovered the one that needs changing for moodle to work if I were to transfer.

I can see the default one is sepcified in the file you stated above, but could a few lines be added to change the location within the config file to the domain which is bound by tinyDNS in SME server.

obviously within the prepackages installation sme server does not like the $DomainName variable in PHP.

--------
mxkz

Offline paulsnz

  • **
  • 27
  • +0/-0
Well Done Shell
« Reply #6 on: August 01, 2007, 11:14:50 AM »
Great stuff
:D
 :twisted: Sm

Offline paulsnz

  • **
  • 27
  • +0/-0
Dungog
« Reply #7 on: August 01, 2007, 12:12:18 PM »
Thanks for the excellent offerings from www.dungog.net must have addons!!

Much thankx to Stephen Noble   :hammer:  :pint:

Offline joefusto

  • 2
  • +0/-0
Re: Problem with dungog moodle install
« Reply #8 on: September 13, 2007, 02:45:00 PM »
Hi all!
I'm also had a problem with moodle install.
I've installed without problem moodle from sme server software install, but when I try to install smeserver-moodle I got this error:

Error:Missing Dependency: gd is needed by package smeserver-moodle

I've looked for it with phpinfo, and everything seems installed and functioning.

I use smeserver 7.2 up to date with latest update.

Anyone have ideas?

Thanks for now and best regard
Joe

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
Re: Problem with dungog moodle install
« Reply #9 on: September 17, 2007, 04:08:05 PM »
gd is in centos base, which should be enabled
http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/

but fix it with details here
http://wiki.contribs.org/Updating_to_SME_7.2#Ensuring_the_correct_yum_repository_configuration

are you saying gd isn't needed ?
maybe it's only used occasionally

Offline joefusto

  • 2
  • +0/-0
Re: Problem with dungog moodle install
« Reply #10 on: September 19, 2007, 03:31:59 PM »
Thanks for you answer.
By the meantime I've solved with a workaround found in an other post, modifying apache template and changing the name of the files folder of the ibays to ffiles. The same for the relative link.

I've installed moodle from original distribution, and now everything is ok. Doing this I lost the sme automatic update feature...

I think gd isn't needed because phpinfo() reports that are currently installed and configured, and because moodle installed from files downloaded from moodle.org after fflies workaround works fine, without any problems about gd.

It seems like rpm from dungog doesn't recognize it...

I'm asking why when i search for something in forums I never find the right post! :-(

Thank for your links and your time, and sorry for my English!

Best regars
Joe