Changes

From SME Server
Jump to navigationJump to search
504 bytes added ,  10:00, 28 September 2011
added db commands
Line 10: Line 10:     
===Installation===
 
===Installation===
Install from the dungog repo, or download moodle and smeserver-moodle from any [[http://mirror.contribs.org/smeserver/contribs/dungog/packages/smeserver/7.0/i386/html/index_dungog.html 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
+
 
 +
====Setup====
 +
Edit /opt/moodle/html/config.php the first time you install to set mysql details, domain name and moodle paths.
 +
 
 +
cd /opt/moodle/html
 +
  cp config-dist.php config.php
 +
nano -w config.php
 +
 
 +
// 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';
   −
For uninstall
  −
yum remove moodle smeserver-moodle
     −
For both you can ignore the yum-comments ''signal event post-upgrade'' and ''signal-event reboot''.
+
To setup moodle start your browser with the URL ''http://YOURDOMAIN.COM/moodle'' and complete the forms.
   −
====Setup====
  −
To setup moodle start your browser with the URL ''http://servername/moodle'' and complete the forms.
     −
* Choose and set the URL moodle will be accessed with.
+
====Update====
Apply any changes to the URL or domain property '''before setting up moodle'''. refer to options below <br>eg. config setprop moodle domain moodle.yourserver.org
+
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====
 
====Usage====
Line 31: Line 50:     
* Authentication
 
* Authentication
To authenticate SME users against moodle configure moodle to use POP3, this is optional, it some cases it's better to create a new set of users just for moodle.
+
Email based self registration is the default method.
 +
 
 +
To authenticate SME users against moodle, configure moodle to use POP3.
    
With regular POP3, port 110, 127.0.0.1 in Moodle and "allow private" in SME server-manager > Email.
 
With regular POP3, port 110, 127.0.0.1 in Moodle and "allow private" in SME server-manager > Email.
Line 38: Line 59:     
* Privileged Users
 
* Privileged Users
Assign other moodle system administrators, course creators and teachers.
+
Assign new moodle system administrators, course creators and teachers.
    
* Courses
 
* Courses
Add course categories and before adding courses. Then assign a teacher to a course.
+
Add course categories before adding courses. Then assign a teacher to a course.
    
* Students
 
* Students
Students can be authenticated against SME (if enabled), created from a flat text file or the default is for them to create their own account.
+
The default is for students to create their own account and join courses themselves.
 +
 
 +
=== Uninstallation ===
 +
To remove this package issue the following command on the SME Server shell:
 +
rpm -e moodle smeserver-moodle
 +
 
 +
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.
    
=== Options ===
 
=== Options ===
You can fine tune access to moodle with DB settings.
+
* You can fine tune access to moodle with DB settings.  
+
 
http://wiki.contribs.org/Generic_WebApp_rpm#New_DB_settings
+
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 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 ===
Line 64: Line 93:  
[[Category: CMS]]
 
[[Category: CMS]]
 
[[Category: Dungog]]
 
[[Category: Dungog]]
 +
[[Category: Webapps]]
624

edits

Navigation menu