1. Home
  2. Docs
  3. Edmo – Moodle Theme Documentation
  4. Demo Installation

Demo Installation

The following instructions will show you how to install a fresh instance of Moodle, complete with Edmo installed, all modules pre-configured, and extensive demo content with placeholder images.

1. Create database

Unless you plan on using an existing database, you must create a new database for your Moodle installation.

The database can be named however you wish. The database can be created via phpMyAdmin (as shown below), or via another database manager such as cPanel or Parallels Plesk.

(You may also need to create a new database user, unless you plan on using an existing one.)

2. Populate database

Import the SQL file, named edmo.sql (located in the ‘Demo Installation’ folder in your theme download package), into your new database. This can be accomplished via phpMyAdmin, as shown below.

Ensure that your server is configured to allow uploads of at least 5.4 MB, so that the SQL file can be fully imported.

3. Upload files

Upload the demo_files.zip archive (located in the Demo Installation folder) to your web server, and extract it using either cPanel, another administration interface, or command line.

Alternatively, you can manually upload the entire contents of the uncompressed demo_files folder to your web server. Ensure that all hidden files are also transferred, as these may be hidden in your computer’s file browser. We recommend using an FTP client, such as FileZilla.

4. Upload moodledata

Upload the moodledata.zip archive (located in the Demo Installation folder) to your web server, outside your web root. Moodle requires that the moodledata folder is not publicly accessible.

Once uploaded, extract the archive using either cPanel, another administration interface, or command line.

Alternatively, you can manually upload the entire contents of the uncompressed moodledata folder to your web server. Ensure that all hidden files are also transferred, as these may be hidden in your computer’s file browser. We recommend using an FTP client, such as FileZilla.

Your web server should have read-write permissions to the moodledata directory. For further instructions, please visit Moodle.org.

5. Configure config.php

You must now configure Moodle’s config.php file to reflect your new database credentials and moodledata directory location, so that Moodle can connect to the database.

It is mandatory to complete all of the following steps, in order for your website to work correctly.

  1. Open the config.php file located in the Moodle root on your web server.
  2. On lines 10 to 12, edit the database name, user, and password to match the new database credentials you set up in Step 1.
  3. You may also need to edit the database port and host to match that of your server, and the database collation to match that of the new database you created in Step 1.
  4. On line 21, change the website root to your website URL, or your localhost address (e.g. http://localhost/moodle, or http://localhost:8888/moodle)

    This step is important. If you specify the incorrect web address your website will not display correctly.
  5. On line 22, change the “dataroot” to match the location of the moodledata directory you uploaded in Step 4. This path should be relative to your server root.
  6. On line 25, adjust the “directorypermissions” to the directory permissions set for your moodledata directory (in Step 4). By default, these are 0777. However, they may also be 0775 or 0755, depending on your server configuration. For further guidance on setting the appropriate permissions, visit Moodle.org

6. Login

Your Edmo demo installation is now complete. You can now login to your new Edmo website with the following administrator credentials.

→ Navigate to {yoursite.com}/login/index.php to login directly.

USERNAME: edmo
PASSWORD: [email protected]

7. DB search and replace

After logging in, navigate directly to {yoursite.com}/admin/tool/replace/ via your web browser’s address bar and search and replace url.

Add Search whole database for field value: http://localhost/moodle/edmo/

Add your site URL into Replace with this string field.

8. Purge the Moodle cache

After logging in, navigate directly to {yoursite.com}/admin/purgecaches.php via your web browser’s address bar and click the ‘Purge all caches’ button.

Wait for the page to refresh and reload completely. Once the page has refreshed and loaded completely, the caches have been succesfully purged.

This process may take several minute

9. Complete!

Your installation of Edmo is officially complete! Happy site building! (Please don’t forget to change the administrator password first.)

Was this article helpful to you? Yes No

How can we help?