Moodle 3.2.1 Installation

  1. Download the latest version from https://download.moodle.org/
  2. Extract the zip file to your webroot directory
  3. Install via your browser http://localhost/works/moodle32/install.php
    My setting:

    Make sure the ‘Data directory’ can be written!
    I created the dir ‘moodledata’ then set the permission to 777
  4. Select the database ‘Improved MySQL/mysqli)
    My setting:

    But create the new database ‘moodle32’ via phpmyadmin first (collation: utf8-general-ci)
  5. Install and enable some php extensions required. For example I need to install also two php extension xmlrpc and intl (dont forget to restart the apache server after the installation)

    Then refresh the page to see the changes
  6. Create an username and password

     
  7. Site setting

     
  8. Done. Here is the screenshot
    Admin dashboard (http://localhost/works/moodle32/my/) Site Home (http://localhost/works/moodle32/?redirect=0)
  9. Install and Change theme
    Currently the default theme is ‘Boost’. If you want to change the theme, you can find them on the internet. The free themes can be found in https://moodle.org/plugins/browse.php?list=category&id=3. Please find the correct support version (here, it should support moodle version 3.2). I use ‘Campus’ theme as an example (https://moodle.org/plugins/theme_campus). The tutorial for the theme installation can be read in https://github.com/dasistwas/moodle-theme_campus/.
    I downloaded the theme (https://moodle.org/plugins/download.php/13006/theme_campus_moodle32_2016121403.zip) then extract it in ‘/theme/’ directory of my moodle installation (/moodle32/theme/). Then Go to ‘Site Administration’ -> ‘Notification’ or http://localhost/works/moodle32/admin/index.php. It’d show this page (note: I use ‘Aadvark’ theme here but the step is relatively same)
    Then click ‘Upgrade Moodle database now’ button. ATTN: SOMETIMES THE PROCESS TO UPGRADE THE DB IS SLOW (FOR CAMPUS THEME)!
    If success, click ‘Continue’ button!.
    Then We’d face the page setting for the theme (http://localhost/works/moodle32/admin/upgradesettings.php?). Make any change if necessary then click ‘Save Changes’ button.
    DONE
  10. To use the theme, Pls go to ‘Site Administration’ -> ‘Appearance’ -> ‘Themes’ -> ‘Theme Selector’ or http://localhost/works/moodle32/theme/index.php. On ‘Default’, click ‘Change theme’Then select ‘Campus’ theme. Click ‘Use theme’ button (http://localhost/works/moodle32/theme/index.php?confirmation=1&choose=campus).Here is the ‘Campus’ theme looks!
  11. I can do many things else like install and use your own language (Install new language: Site Administration -> Language -> Language Packs) then at ‘Language Settings’, change the default language. Then you can select and change the language from the frontend
  12. Create a new user
    Pls go to Site administration -> Users -> Accounts -> Add a new user (http://localhost/works/moodle32/user/editadvanced.php?id=-1). Then fill the formThen click ‘Create User’
  13. Create the courses (and the course category)
    Pls go to Site administration -> Courses -> Add a category (http://localhost/works/moodle32/course/editcategory.php?parent=0) then fill the form.Then click ‘Create category’.Then click ‘Create new course’. Then fill the form.Then click ‘Save and return’. You can add some more courses. So here is the looks.
  14. Enroll (Add) users to the courses
    For example for adding the new user ‘salman’ to the course ‘Calculus I’. First, click the course ‘Calculus I, then click ‘Enrolled users’ link.then click ‘Enroll user’ button.then modify ‘Assign roles’ to ‘Teacher’ and click ‘Enrol’ for user ‘Salman’. At the end, click ‘Finish enrolling users’ button. Here is the result.To add/enroll a new user as a student, please create the new user like #12 then enroll this user as a student like above!
  15. ourses view as a teacher and a student.
    Logout from the admin account. Here is the frontpage (http://localhost/works/moodle32/) looks.Then try to login as a teacher (user: salman, password: Salman@123). As a teacher, he/she can change/modify the course content (press the right button to on/off the edit mode) and give/add activity.Then  try to login as a student (user: satria, password: Satria@123). As a student, he/she can only read/view the courses (cannot edit the course).Moodle 1.9.7
    USE PHP 5.6 — NO NEED TO CHANGE PHP CLI

    Setup with Nginx

    Here is the content

    NOTE: Pay attention on these lines

    I HAVE TO PUT THEM THERE. IF NOT, I’D GET SESSION PROBLEM AND THE STATIC FILES (JS AND CSS) PATH WOULD NOT BE RECOGNIZED
    REF: https://www.sudutbaca.com/cara-install-moodle-di-debian-9-menggunakan-nginx-mariadb-php7-2-fpm/

    XXXdon’t forget to create the log file in var/log/system.log
    Then


    Then

    Insert this line:

    Then check the nginx config and restart nginx

    Set the files owner

    Open it on your browser http://moodle_1917.test. For the first time, it’ll install Moodle.

Leave a Reply

Your email address will not be published. Required fields are marked *