moodle-1.7-6 (Course Management System)

Tested on openSUSE10.2

Moodle is a course management system (CMS). This package is already integrated with the openSUSE installation source

Configuration

  • Install "moodle" package from the installation source by YaST. The file would be at (.../repo/oss/suse/noarch/moodle-1.7-6.noarch.rpm). By YaST, PHP extension packages are also installed automatically.
  • If the system does not have a root password for your MySQL, set the password as,
    # mysqladmin -u root password 'rootpassword'
    
  • Create a moodle database at MySQL.
    # mysqladmin -u root -p create moodle
    Enter password: rootpassword
    
  • Create an access permissions to moodleuser at MySQL.
    # mysql -u root -p
    Enter password: rootpassword
    ...
    mysql> GRANT ALL ON moodle.* TO moodleuser@localhost IDENTIFIED BY 'moodlepassword';
    mysql> quit
    
  • Edit /etc/moodle-config.php. You need to change the wwwroot to set your FQDN, and remove the last slash at the dirroot.
    ...
    $CFG->dbtype    = 'mysql';       // mysql or postgres7 (for now)
    $CFG->dbhost    = 'localhost';      // eg localhost or db.isp.com
    $CFG->dbname    = 'moodle';      // database name, eg moodle
    $CFG->dbuser    = 'moodleuser';  // your database username
    $CFG->dbpass    = 'moodlepassword';      // your database password
    ...
    // $CFG->wwwroot   = 'http://localhost/moodle/';
    $CFG->wwwroot   = 'http://foobar/moodle';
    ...
    // $CFG->dirroot   = '/srv/www/htdocs/moodle/';
    $CFG->dirroot   = '/srv/www/htdocs/moodle';
    ...
    
  • Edit /etc/apache2/conf.d/moodle_include.conf. Those lines occur twice for php4, and php5.
    ...
    #       php_value upload_max_filesize 10M
    #       php_value post_max_size 10M
    #       php_value memory_limit "16M"
           php_value upload_max_filesize 20M
           php_value post_max_size 20M
           php_value memory_limit "32M"
    ...
    #       php_admin_value open_basedir "/srv/www/moodledata:/srv/www/htdocs/moodle/:/tmp"
           php_admin_value open_basedir "/srv/www/moodledata:/srv/www/htdocs/moodle/:/tmp:/etc/moodle-config.php"
    ...
    
  • Increase the memory limit of PHP. Edit /etc/php5/cli/php.ini
    ...
    ; memory_limit = 16M      ; Maximum amount of memory a script may consume (16MB)
    memory_limit = 128M      ; Maximum amount of memory a script may consume (16MB)
    ...
    
  • Open http://localhost/moodle/. You can see the copyright notice. Click "Yes"

  • Setting up database. Click "Continue"

  • Current release information. Click "Continue"

  • Setting up modules tables. Click "Continue"

  • Setting up plugin tables. Click "Continue"

  • Setting up block tables. Click "Continue"

  • Setting up plugin tables. Click "Continue"

  • Configure a main administrator account.

  • Front Page configuration.


  • Back
    Google
    Web www.grape-info.com