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
.sql
file from the demo package.

đš Step 3: Upload Files
- Inside the unzipped demo folder, open the
links.txt
file 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_files
folder 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.txt
file 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
moodledata
directory has read and write permissions.
Refer to Moodle.org for more on file permissions.
đš Step 5: Configure config.php
- Open the
config.php
file located in your Moodle root directory. - Update the following:
$CFG->dbuser
,$CFG->dbpass
,$CFG->dbname
â set your DB credentials.$CFG->dbhost
â usuallylocalhost
or127.0.0.1
.$CFG->wwwroot
â use your actual site URL.$CFG->dataroot
â path to yourmoodledata
directory.$CFG->directorypermissions
â typically0777
or0755
.