Demo Installation

Follow these instructions to download and prepare the Edvik theme for your Moodle site.


 Step 1: Download from ThemeForest

  1. After purchasing Edvik from ThemeForest, go to your ThemeForest account.
  2. Navigate to the Downloads tab.
  3. Click on the download button and choose:
    “All Files & Documentation” (Full ZIP folder).

 Step 2: Unzip the Downloaded File

  1. Once the ZIP file is downloaded, extract/unzip it.
  2. You will see a folder structure like this:
  1. Inside the unzipped folder, you’ll find Moodle version-specific folders. You can choose the version that matches your Moodle installation.
  2. Important: Each version is optimized specifically for its supported Moodle release. Forward or backward compatibility between different Moodle versions is not guaranteed.
  3. Access Demo Files via link.txt:
    • Inside the root of the package, open the link.txt file.
    • It contains links for:
      •  Demo Moodle core files link
      •  Demo Moodledata folder link
      •  Documentation link

 These demo files will help you replicate the exact layout and functionality shown in the theme demo.

Theme Installation & Demo Setup

Follow these steps to successfully install the Edvik 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 edvik.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).

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

  1. Then upload the following:
    • edvik.zip (theme file) → into: /your_root_path/theme/
    • blocks.zip (all blocks) → into: /your_root_path/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->directorypermissions – typically 0755 or 0775 depending on your server configuration.
    • $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: edvik  
Password: EdvikPass1@

 Step 7: Replace Demo URL Placeholder

  1. Go to: {your-site-url}/admin/tool/replace/
  2. Enter the old URL
  3. Replace it with your current site URL
Replace all placeholder URLs with your actual Moodle site URL:

Placeholder	        Replace With
https://%%WWWROOT%%	https://your-site-url
https://{{WWWROOT}}	https://your-site-url
  1. Click Submit to complete the URL update.( This may take a few minutes. Be patient.)

Note: If the Find & Replace tool from the Moodle dashboard does not work on your server, open the demo .sql file using a code editor such as VS Code and manually replace the placeholder URLs with your actual site URL.

Placeholder	        Replace With
%%WWWROOT%%	        https://your-site-url
{{WWWROOT}}	        your-site-url

After updating the SQL file placeholders, open phpMyAdmin, select your database, and import the updated SQL file.

 Step 8: Purge Moodle Cache

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

 Final Step: Change Admin Password

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