Theme Installation & Setup

Follow these steps to successfully install the Edly 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 Edly.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:
    • Edly.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.

🔹 Step 6: Log In

  1. Visit: {your-site-url}/login/index.php
  2. Use the following admin credentials:
Username: edly  
Password: EdlyPass1@

🔹 Step 7: Search & Replace Old URLs

  1. Go to: {your-site-url}/admin/tool/replace/
  2. Enter the old URL (based on the original setup):

http://localhost/moodle/edly/

or

http://localhost:8888/moodle/edly-4.0/

0r

http://localhost:8888/moodle/edly-4.2/

0r

http://localhost:8888/moodle/edly-4.3/

0r

http://localhost:8888/moodle/edly-4.4/

0r

http://localhost:8888/moodle/edly-4.5/

0r

https://edly.ddev.site/ (Moodle 5.0+)

  1. Replace it with your current site URL, e.g.:
https://yourdomain.com/
  1. Click Submit to complete the URL update.

🔹 Step 8: Purge Moodle Cache

  1. Visit: {your-site-url}/admin/purgecaches.php
  2. Click ‘Purge all caches’

⏳ This may take a few minutes. Be patient.


🔒 Final Step: Change Admin Password

For security reasons, please change the administrator password after your first login.