Skip to main content

installation

Installation & Demo Import

Upload Theme

Upload and install via ZIP file

  1. Login to your Moodle site as an admin.
  2. Go to Site administration > Plugins > Install plugins.
  3. In your downloaded package from ThemeForest, open the folder Theme. Choose the appropriate upload file for your Moodle version:
  4. Upload the ZIP file (theme_unican)
  5. Check the plugin validation report, then click the button 'Install plugin'.

Install Plugins

1.Upload these blocks and local plugin:

  • BLock folder: block_moon_blog.zip and block_moon_galleries.zip
  • Local folder: local_moon.zip

Import Demo Content

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

Step 1: Create a Database

  1. Log in to phpMyAdm
  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 unican_moodle.sql file (extracted 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. Then upload the following:

  • theme_moon.zip (theme file) → into: /demo_files/theme/
  • block_moon_blog.zip and block_moon_galleries.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.

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
  2. Use the following admin credentials: Username: admin
    Password: password

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): ex: https://moon.dev.site

  3. Replace it with your current site URL, e.g.: https://yourdomain.com/

  4. Click Submit to complete the URL update.

Step 8: Purge Moodle Cache

  1. Visit: your-site-url/admin/purgecaches
  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.

Changing the default theme

The theme selector

An administrator can set a theme for the site from Site administration > Appearance > Themes > Theme selector.

Go to Site administration > Appearance > Themes

  • Click on the "Select theme" button on the preview of each theme.
  • Scroll down to see the previews of the available themes and click on the "Use theme" button to choose the theme
  • The next screen will provide information about the theme. Click "Continue"

Note: The selected theme may be overridden if user/course or category themes have been allowed in the Moodle core theme settings.