Changes

From SME Server
Jump to navigationJump to search
274 bytes added ,  10:00, 28 September 2011
added db commands
Line 16: Line 16:     
====Setup====
 
====Setup====
To setup moodle start your browser with the URL ''http://servername/moodle'' and complete the forms.
+
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';
 +
 
 +
 
 +
To setup moodle start your browser with the URL ''http://YOURDOMAIN.COM/moodle'' and complete the forms.
   −
* Choose and set the URL moodle will be accessed with.
  −
Apply any changes to the URL property '''before setting up moodle'''. refer to options below <br>eg. config setprop moodle URL lesson
      
====Update====
 
====Update====
DRAFT
  −
   
Review http://docs.moodle.org/en/Upgrading
 
Review http://docs.moodle.org/en/Upgrading
    
yum update moodle --enablerepo=smecontribs
 
yum update moodle --enablerepo=smecontribs
   −
Visit your moodle site as admin to trigger the upgrade and complete the install
+
Visit your moodle site to trigger the upgrade and complete the install
    
====Usage====
 
====Usage====
Line 58: Line 74:     
=== Options ===
 
=== Options ===
* You can fine tune access to roundcube with DB settings. For details have a look at [[Web Application RPM#New DB settings]].
+
* You can fine tune access to moodle with DB settings.  
 
  −
* Local Settings
  −
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
  −
 
  −
10config-dist is the unmodified moodle config file with overrides in 20db
     −
put site specific overrides in 25local, and enable with
+
For details have a look at [[Web Application RPM#New DB settings]].
expand-template /opt/moodle/html/config.php
      +
To see the current DB settings for Moodle do
 +
config show moodle
   −
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 79: Line 93:  
[[Category: CMS]]
 
[[Category: CMS]]
 
[[Category: Dungog]]
 
[[Category: Dungog]]
 +
[[Category: Webapps]]
624

edits

Navigation menu