Changes

From SME Server
Jump to navigationJump to search
100 bytes removed ,  10:00, 28 September 2011
added db commands
Line 1: Line 1:  
{{Languages}}
 
{{Languages}}
  −
==Moodle for SME 7.x==
      
===Maintainer===
 
===Maintainer===
Line 12: Line 10:     
===Installation===
 
===Installation===
Install from the dungog repo, or download moodle and smeserver-moodle from any [[http://mirror.contribs.org/smeserver/releases/7/smedev/i386/RPMS/ smedev mirror]]
+
This contrib can be found in the smecontribs repository.
{{Repository|Dungog}}
+
yum --enablerepo=smecontribs install moodle smeserver-moodle
   −
To install
+
No need to reboot.
yum enablerepo=dungog install moodle smeserver-moodle
     −
For uninstall
+
====Setup====
yum remove moodle smeserver-moodle
+
Edit /opt/moodle/html/config.php the first time you install to set mysql details, domain name and moodle paths.
   −
For both you can ignore the yum-comments ''signal event post-upgrade'' and ''signal-event reboot''.
+
cd /opt/moodle/html
 +
cp config-dist.php config.php
 +
nano -w config.php
   −
===Setup===
+
// 1. DATABASE SETUP
To setup moodle start your browser with the URL ''http://servername/moodle'' and complete the forms.
+
$CFG->dbuser    = 'moodle';            // your database username is moodle
 +
$CFG->dbpass    = '439321584876185';    // find your database password with 'config show moodle'
 +
 +
// 2. WEB SITE LOCATION
 +
$CFG->wwwroot  = 'http://YOURDOMAIN.COM/moodle';
 +
 +
// 3. SERVER FILES LOCATION
 +
$CFG->dirroot  = '/opt/moodle/html';
 +
 +
// 4. DATA FILES LOCATION
 +
$CFG->dataroot = '/opt/moodle/moodledata';
   −
{{Note box|Apply any changes to the domain property before setting up moodle. eg moodle.yourserver.org}}
     −
=== Options ===
+
To setup moodle start your browser with the URL ''http://YOURDOMAIN.COM/moodle'' and complete the forms.
* To disable moodle. (default is enabled)
+
 
config setprop moodle status disabled
     −
* To limit access to moodle.
+
====Update====
config setprop moodle PublicAccess OPTION
+
Review http://docs.moodle.org/en/Upgrading
   −
OPTION is either of the following.
+
yum update moodle --enablerepo=smecontribs
   −
        none            => No access
+
Visit your moodle site to trigger the upgrade and complete the install
        local            => Local network  (no password required)
  −
        local-pw        => Local network  (password required)
  −
        global          => Entire Internet(no password required)
  −
        global-pw        => Entire Internet(password required)
  −
        global-pw-remote => Entire Internet(password required outside local network)
     −
* To add a different URL eg. yourserver.net/moodle
+
====Usage====
note, this adds another url, it doesn't remove the default
+
Begin with reading the [http://docs.moodle.org/en/Using_Moodle_book Moodle book]
   −
config setprop moodle URL blog
+
* Authentication
 +
Email based self registration is the default method.
   −
* To run moodle from the root of a domain eg.
+
To authenticate SME users against moodle, configure moodle to use POP3.
moodle.yourserver.net or <br>
  −
domain2.org
     −
config setprop moodle domain moodle.yourserver.org OR
+
With regular POP3, port 110, 127.0.0.1 in Moodle and "allow private" in SME server-manager > Email.
config setprop moodle domain domain2.org
     −
In /server-manager ''Hostnames and Addressess'' setup eg. moodle as a hostname on one of you domains or <br>
+
Also seems to work with POP3cert port 995 in Moodle and "allow private and public" in SME server manager > Email.
in ''Domains'' setup a new domain eg. domain2.org, moodle will overrule the panel setting
     −
To enable your changes run these commands
+
* Privileged Users
 +
Assign new moodle system administrators, course creators and teachers.
   −
expand-template /etc/httpd/conf/httpd.conf
+
* Courses
sv h /service/httpd-e-smith
+
Add course categories before adding courses. Then assign a teacher to a course.
   −
* php applications may be faster with http://sourceforge.net/projects/eaccelerator
+
* Students
prepared for sme7 by MasterSleepy
+
The default is for students to create their own account and join courses themselves.
http://www.vanhees.cc/index.php?name=CmodsDownload&file=index&req=viewdownloaddetails&lid=314
     −
  yum enablerepo=dungog install smeserver-eaccelerator
+
=== Uninstallation ===
 +
To remove this package issue the following command on the SME Server shell:
 +
  rpm -e moodle smeserver-moodle
   −
=== Local Settings ===
+
To remove mysql database and user, both are moodle, see [[MySQL#Remove a database]] and [[MySQL#Remove a user]]. There is no need to reboot.
The config file is now templated, so changes need to be made in a new fragment
  −
ll /etc/e-smith/templates/opt/moodle/html/config.php
     −
If you think your setting should be the SME default raise a bug
+
=== Options ===
 +
* You can fine tune access to moodle with DB settings.
   −
=== Bugs ===
+
For details have a look at [[Web Application RPM#New DB settings]].
Please raise bugs under the SME-Contribs section in {{BugzillaFileBug|product=|component=|title=bugzilla}}and select the smeserver-moodle component or use {{BugzillaFileBug|product=SME%20Contribs|component=smeserver-moodle|title=this link}}.
     −
=== Tested software versions ===
+
To see the current DB settings for Moodle do
 +
config show moodle
   −
* Host: SMEserver v7.2
+
To allow "normal" public access to Moodle do the following
* Installed: smeserver-moodle 1.0-1.el4.sme
+
config setprop moodle PublicAccess global
* Dependency Installed: moodle 1.8.1-1.el4.sme
+
expand-template /etc/httpd/conf/httpd.conf
 +
sv h /service/httpd-e-smith
   −
=== Additional information ===
+
=== Bugs ===
 +
Please raise bugs under the SME-Contribs section in {{BugzillaFileBug|product=|component=|title=bugzilla}}and select the smeserver-moodle component or use {{BugzillaFileBug|product=SME%20Contribs|component=smeserver-moodle|title=this link}}.
       
[[Category: Contrib]]
 
[[Category: Contrib]]
 +
[[Category: CMS]]
 +
[[Category: Dungog]]
 
[[Category: Webapps]]
 
[[Category: Webapps]]
[[Category: Dungog]]
 
624

edits

Navigation menu