--- title: "Register your site" slug: "register-your-site" tags: ["Site Administrator", "How-to"] updated: 2025-07-22T10:52:18Z published: 2025-07-22T11:18:01Z canonical: "totara.help/register-your-site" --- > ## Documentation Index > Fetch the complete documentation index at: https://totara.help/llms.txt > Use this file to discover all available pages before exploring further. # Register your site Registering your site is an important part of getting started with Totara. See [Totara registration](/19/docs/totara-registration) to find out why this is important, or check [which data will be collected](/19/docs/registration-data-collected-by-totara) once you register your site. ## Registering your site Subscription registration codes are made available for a subscription as soon as the subscription is 'awaiting activation'. To obtain the registration code: 1. Firstly you will need to obtain your **registration code**, this can be done in the following ways: - By contacting your Totara Partner and requesting the code from them - If you are a direct subscriber then you will be given the code directly from Totara Learning 2. Next, as a Site Administrator, log in to the site you want to register and click *Quick-access menu* *> System information > Totara registration* (/admin/register.php)*.* 3. Select **Type of site** as **Production** and paste the registration code into the text box (you should not need to adjust other [settings](/19/docs/registration-settings)). 4. Click **Save** to finish and submit the form. ### Registering via config.php Partners wishing to automate the registration process can register programmatically by specifying the following fields in the site's config.php file: ```php $CFG->sitetype = 'production'; // Options are 'production', 'qa', 'demo' or 'development'. $CFG->registrationcode = 'xxxxxxxxxxxxxxxx'; // Unique 16 character long alphanumeric code. ``` Note the registration code must be provided for production sites and each site must have its own unique code. We recommend developers working for partners include **$CFG->sitetype = 'development';** in their default config.php file, and any automated deployment code be updated to set the correct value for staging and test sites. You can find more information, including FAQs, in the [Subscription portal documentation](https://totara.community/mod/book/view.php?id=16784&chapterid=477). You can find out about the minimum requirements for your server on the [Server system requirements](/19/docs/server-system-requirements) page. Join the [Totara Community](https://totara.community/) for more resources to help you get the most out of Totara. © Copyright 2026 Totara Learning Solutions. All rights reserved.