Theme Installation & Setup- Before- Moodle
Follow these steps to successfully install the demo content on your Moodle site.
๐น Step 1: Create a Database
- Log in to phpMyAdmin
- Create a new database

๐น Step 2: Import Demo SQL File
- Open your newly created database in phpMyAdmin.
- Click on Import.
- Choose and import the
.sqlfile from the demo package.

๐น Step 3: Upload Files
- Inside the unzipped demo folder, open the
links.txtfile to get the download link fordemo_files.zip. - Download
demo_files.zip. - 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 extracteddemo_filesfolder to your web server.
- Then upload the following:
(theme file) โ into:.zip/demo_files/theme/blocks.zip(all blocks) โ into:/demo_files/blocks/

๐น Step 4: Upload Moodle Data Files
- Open the
links.txtfile to find the download link formoodledata.zip. - Download
moodledata.zip. - Upload and extract it outside your webroot (e.g.,
/var/www/moodledata/).
โน๏ธ Important: Ensure the
moodledatadirectory has read and write permissions.
Refer to Moodle.org for more on file permissions.
๐น Step 5: Configure config.php
- Open the
config.phpfile located in your Moodle root directory. - Update the following:
$CFG->dbuser,$CFG->dbpass,$CFG->dbnameโ set your DB credentials.$CFG->dbhostโ usuallylocalhostor127.0.0.1.$CFG->wwwrootโ use your actual site URL.$CFG->datarootโ path to yourmoodledatadirectory.$CFG->directorypermissionsโ typically0777or0755.