Changes

From SME Server
Jump to navigationJump to search
239 bytes added ,  22:26, 17 April 2021
no edit summary
Line 1: Line 1:  
{{Languages}}
 
{{Languages}}
  −
==Moodle for SME 7.x==
      
===Maintainer===
 
===Maintainer===
 
[http://www.dungog.net Dungog.net] (Software)
 
[http://www.dungog.net Dungog.net] (Software)
 +
 +
=== Version ===
 +
{{#smeversion: smeserver-{{lc:{{FULLPAGENAME}}}} }}
    
===Description===
 
===Description===
Line 12: Line 13:     
===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
 +
 
 +
No need to reboot.
   −
To install
+
====Setup====
yum enablerepo=dungog install moodle smeserver-moodle
+
Edit /opt/moodle/html/config.php the first time you install to set mysql details, domain name and moodle paths.
   −
For uninstall
+
cd /opt/moodle/html
  yum remove moodle smeserver-moodle
+
  cp config-dist.php config.php
 +
nano -w config.php
   −
For both you can ignore the yum-comments ''signal event post-upgrade'' and ''signal-event reboot''.
+
// 1. DATABASE SETUP
 +
$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';
   −
===Setup===
  −
To setup moodle start your browser with the URL ''http://servername/moodle'' and complete the forms.
     −
{{Note box|Apply any changes to the domain property before setting up moodle. eg moodle.yourserver.org}}
+
To setup moodle start your browser with the URL ''http://YOURDOMAIN.COM/moodle'' and complete the forms.
   −
=== Options ===
  −
* 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
 +
 
 +
yum update moodle --enablerepo=smecontribs
 +
 
 +
Visit your moodle site to trigger the upgrade and complete the install
 +
 
 +
====Usage====
 +
Begin with reading the [http://docs.moodle.org/en/Using_Moodle_book Moodle book]
   −
OPTION is either of the following.
+
* Authentication
 +
Email based self registration is the default method.
   −
        none            => No access
+
To authenticate SME users against moodle, configure moodle to use POP3.
        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
+
With regular POP3, port 110, 127.0.0.1 in Moodle and "allow private" in SME server-manager > Email.
note, this adds another url, it doesn't remove the default
     −
config setprop moodle URL blog
+
Also seems to work with POP3cert port 995 in Moodle and "allow private and public" in SME server manager > Email.
   −
* To run moodle from the root of a domain eg.
+
* Privileged Users
moodle.yourserver.net or <br>
+
Assign new moodle system administrators, course creators and teachers.
domain2.org
     −
config setprop moodle domain moodle.yourserver.org OR
+
* Courses
config setprop moodle domain domain2.org
+
Add course categories before adding courses. Then assign a teacher to a course.
   −
In /server-manager ''Hostnames and Addressess'' setup eg. moodle as a hostname on one of you domains or <br>
+
* Students
in ''Domains'' setup a new domain eg. domain2.org, moodle will overrule the panel setting
+
The default is for students to create their own account and join courses themselves.
   −
To enable your changes run these commands
+
=== Uninstallation ===
 +
To remove this package issue the following command on the SME Server shell:
 +
rpm -e moodle smeserver-moodle
   −
expand-template /etc/httpd/conf/httpd.conf
+
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.
sv h /service/httpd-e-smith
     −
* php applications may be faster with http://sourceforge.net/projects/eaccelerator
+
=== Options ===
prepared for sme7 by MasterSleepy
+
* You can fine tune access to moodle with DB settings.
http://www.vanhees.cc/index.php?name=CmodsDownload&file=index&req=viewdownloaddetails&lid=314
     −
yum enablerepo=dungog install smeserver-eaccelerator
+
For details have a look at [[Web Application RPM#New DB settings]].
   −
=== Local Settings ===
+
To see the current DB settings for Moodle do
The config file is now templated, so changes need to be made in a new fragment
+
config show moodle
ll /etc/e-smith/templates/opt/moodle/html/config.php
     −
If you think your setting should be the SME default raise a bug
+
To allow "normal" public access to Moodle do the following
 +
config setprop moodle PublicAccess global
 +
expand-template /etc/httpd/conf/httpd.conf
 +
sv h /service/httpd-e-smith
    
=== Bugs ===
 
=== 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}}.
 
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 ===
+
{{#bugzilla:columns=id,product,version,status,summary |sort=id |order=desc |disablecache=1 |component=smeserver-moodle |noresultsmessage="No open bugs found."}}
 +
 
   −
* Host: SMEserver v7.2
+
==Changelog==
* Installed: smeserver-moodle 1.0-1.el4.sme
  −
* Dependency Installed: moodle 1.8.1-1.el4.sme
     −
=== Additional information ===
+
Only released version in smecontrib are listed here.
    +
{{ #smechangelog: smeserver-moodle }}
    
[[Category: Contrib]]
 
[[Category: Contrib]]
 +
[[Category: CMS]]
 +
[[Category: Dungog]]
 
[[Category: Webapps]]
 
[[Category: Webapps]]
[[Category: Dungog]]
 
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,250

edits

Navigation menu