# Installation



# Installing Moodle

<p class="callout danger">Remember to configure DNS in Xneelo console if required</p>

### Downloading Moodle

1. Go on this page and select the installation which suits your needs
2. Navigate to /tmp folder and download the Moodle package with wget (replacing `https://link-to-moodle-package.com` with the appropriate download link for Moodle)  
      
    `cd /tmp`  
    `wget https://link-to-moodle-package.com`
3. Untar the downloaded package (replacing moodle-package.tar.gz with the appropriate name of the downloaded package)  
      
    `tar -zxfv moodle-package.tar.gz`
4. Move the uncompressed Moodle folder to /var/www (replacing moodle-folder with the name of the uncompressed folder)  
      
    `mv moodle-folder /var/www`
5. Change the owner of the folder and all the files  
      
    `chown -R /var/www/moodle-folder`

### Moodle Web Installation

1. Open your browser, you should get a page similar to this when you open the URL of the website. Select the language and click Next  
      
    [![015.png](https://docs.azandi.co.za/uploads/images/gallery/2020-04/scaled-1680-/yoEP5NYyRVgXJPOv-015.png)](https://docs.azandi.co.za/uploads/images/gallery/2020-04/yoEP5NYyRVgXJPOv-015.png)
2. At the next screen change the Moodle data directory to the appropriate directory  
      
    [![016.png](https://docs.azandi.co.za/uploads/images/gallery/2020-04/scaled-1680-/fP71Tast6DLNRFSn-016.png)](https://docs.azandi.co.za/uploads/images/gallery/2020-04/fP71Tast6DLNRFSn-016.png)
3. Select the appropriate database driver  
      
    [![017.png](https://docs.azandi.co.za/uploads/images/gallery/2020-04/scaled-1680-/KXVH9TP1SqsfTrZt-017.png)](https://docs.azandi.co.za/uploads/images/gallery/2020-04/KXVH9TP1SqsfTrZt-017.png)
4. Enter the database details of the database that was created  
      
    [![018.png](https://docs.azandi.co.za/uploads/images/gallery/2020-04/scaled-1680-/7iKHLX4OVqfgG4Jr-018.png)](https://docs.azandi.co.za/uploads/images/gallery/2020-04/7iKHLX4OVqfgG4Jr-018.png)
5. Now click and wait, after some seconds you should see the conditions, that you should accept  
      
    [![019.png](https://docs.azandi.co.za/uploads/images/gallery/2020-04/scaled-1680-/YEmlqnE1aBsRO77F-019.png)](https://docs.azandi.co.za/uploads/images/gallery/2020-04/YEmlqnE1aBsRO77F-019.png)
6. Moodle will perform some system checks to test that everything is working fine  
      
    [![020.png](https://docs.azandi.co.za/uploads/images/gallery/2020-04/scaled-1680-/Erc7TabdnNOn6CFH-020.png)](https://docs.azandi.co.za/uploads/images/gallery/2020-04/Erc7TabdnNOn6CFH-020.png)
7. Click Continue and other checks will come up....  
      
    [![021.png](https://docs.azandi.co.za/uploads/images/gallery/2020-04/scaled-1680-/xtjE8330AuWtQJPK-021.png)](https://docs.azandi.co.za/uploads/images/gallery/2020-04/xtjE8330AuWtQJPK-021.png)
8. Click continue fill the data of admin user (Name, First, user password..)  
      
    [![022.png](https://docs.azandi.co.za/uploads/images/gallery/2020-04/scaled-1680-/FBpeaD66kiMzsQdk-022.png)](https://docs.azandi.co.za/uploads/images/gallery/2020-04/FBpeaD66kiMzsQdk-022.png)
9. Finally you will land on the Administrator page  
      
    [![023.png](https://docs.azandi.co.za/uploads/images/gallery/2020-04/scaled-1680-/lqCkKDNz1QpPZs9O-023.png)](https://docs.azandi.co.za/uploads/images/gallery/2020-04/lqCkKDNz1QpPZs9O-023.png)

# Adding plugins

### Installing Plugins

1. Navigate to the Moodle plugins website ([https://moodle.org/plugins/](https://moodle.org/plugins/))
2. Search for the plugin
3. Download the latest version of the plugin, preferably matching the production version of Moodle
4. Login to your Moodle site as an admin and go to Administration &gt; Site administration &gt; Plugins &gt; Install plugins
5. Upload the ZIP file. You should only be prompted to add extra details (in the Show more section) if your plugin is not automatically detected  
      
    [![024.png](https://docs.azandi.co.za/uploads/images/gallery/2020-04/scaled-1680-/XR7Jns3ZbUeSnFSn-024.png)](https://docs.azandi.co.za/uploads/images/gallery/2020-04/XR7Jns3ZbUeSnFSn-024.png)
6. If your target directory is not writeable, you will see a warning message
7. Check the plugin validation report  
      
    [![025.png](https://docs.azandi.co.za/uploads/images/gallery/2020-04/scaled-1680-/qw1lDdFpybfXEs9f-025.png)](https://docs.azandi.co.za/uploads/images/gallery/2020-04/qw1lDdFpybfXEs9f-025.png)
8. Follow the prompts to complete

