-
Notifications
You must be signed in to change notification settings - Fork 40
Home
Derschatta edited this page Aug 31, 2023
·
40 revisions
Note: For Ubuntu/Debian users, you can use this easy script to install everything in one go.
- Windows Terminal (Optional, but recommended)
- Ubuntu for WSL2
- Linux GUI app support for WSL & GWSL (Requires Windows 11 - this is required for integrating with PHPStorm)
- Docker Engine and Docker Compose (installed within Ubuntu for WSL2)
Note: On Windows, these next steps will need to be done within your WSL2 Ubuntu terminal/filesystem
- Create a directory that you can clone your Totara sites into (
mkdir ~/totara-sites) - Clone the Totara source code (For Totara employees, see our BitBucket repository) into your site folder and give it a name (e.g.
cd ~/totara-sites && git clone REPO_URL totara13) - Copy the
.env.distfile to.env(cp .env.dist .env) - Within the copied
.env, setLOCAL_SRCto be the full path to your local Totara site folder (e.g.LOCAL_SRC=/home/USERNAME/totara-sites) - Copy the
config.phpfile from this repo into your Totara site repo folder (or alternatively create aconfig.phpbased uponconfig.example.php/config.php.distin the site root) - Add the
bin/folder to your paths (e.g.PATH=$PATH:/path/to/docker-dev/bin) -
Windows Only: In an elevated Windows command prompt, run
icacls C:\Windows\System32\drivers\etc\hosts /grant Users:W(required for the next step) - Run the
tools/set_hosts.shscript to add all the required host entries to your/etc/hostsfile - Configure your terminal to use an extended font pack (full font list available here)
- MacOS Only: Set up Mutagen to improve performance (recommended)
See the Usage page for usage documentation.
Copyright (c) 2025 Totara Learning Solutions Limited