Theme Installation & Setup- Before- Moodle

  • Home
  • Theme Installation & Setup- Before- Moodle

Theme Installation & Setup- Before- Moodle

Follow these steps to successfully install the demo content on your Moodle site.

🔹 Step 1: Create a Database

  1. Log in to phpMyAdmin
  2. Create a new database

🔹 Step 2: Import Demo SQL File

  1. Open your newly created database in phpMyAdmin.
  2. Click on Import.
  3. Choose and import the .sql file from the demo package.

🔹 Step 3: Upload Files

  1. Inside the unzipped demo folder, open the links.txt file to get the download link for demo_files.zip.
  2. Download demo_files.zip.
  3. Upload and extract it on your web server (e.g., inside var/www/htdocs/ or your domain root).

✅ Alternative Method:
Use an FTP client like FileZilla to upload the extracted demo_files folder to your web server.

  1. Then upload the following:
    • .zip (theme file) → into: /demo_files/theme/
    • blocks.zip (all blocks) → into: /demo_files/blocks/

🔹 Step 4: Upload Moodle Data Files

  1. Open the links.txt file to find the download link for moodledata.zip.
  2. Download moodledata.zip.
  3. Upload and extract it outside your webroot (e.g., /var/www/moodledata/).

â„šī¸ Important: Ensure the moodledata directory has read and write permissions.
Refer to Moodle.org for more on file permissions.


🔹 Step 5: Configure config.php

  1. Open the config.php file located in your Moodle root directory.
  2. Update the following:
    • $CFG->dbuser, $CFG->dbpass, $CFG->dbname – set your DB credentials.
    • $CFG->dbhost – usually localhost or 127.0.0.1.
    • $CFG->wwwroot – use your actual site URL.
    • $CFG->dataroot – path to your moodledata directory.
    • $CFG->directorypermissions – typically 0777 or 0755.

Categories

  • No categories