You can change the installation address of the Edjet LMS Server after the application was installed and run.
Article outline:
In this tutorial we will change the web address of the Edjet LMS Server from the current (old) address (example https://old.example.com) to a new address (example https://new.example.com).
To setup a new domain, follow the domain and DNS setup article.
Optionally, you can setup a server-side redirect from the old address to a new one to help users.
The LMS database contains various references to the domain, which all need to be updated to a new domain.
This procedure can update both domain and protocol, if needed. Just change the protocol in REPLACE function together with a domain change. For example, if you migrate to HTTPS change "http" to "https".
To update the installation domain (hostname) in the LMS databse:
We assume the db name is "elms".
SET search_path = template_c6, pg_catalog;
DO
$$
DECLARE
rw record;
BEGIN
FOR rw IN
SELECT 'UPDATE '||C.table_name||' SET '||C.column_name||' = REPLACE ('||C.COLUMN_NAME||',''https://old.example.com'',''https://new.example.com''); ' QRY
FROM (SELECT column_name,table_name
FROM information_schema.columns
WHERE table_schema='template_c6'
AND (data_type ='text' OR data_type ='character varying')
AND table_name in (SELECT table_name
FROM information_schema.tables
WHERE table_schema='template_c6'
AND table_type ='BASE TABLE'))c
LOOP
EXECUTE rw.QRY;
END LOOP;
END;
$$;
Get new SSL certificates issued to match a new domain and deploy it.
Important: Change of the domain require a new license key.
You can immediately activate the Edjet LMS using a free 30-day trial key:
To activate the Edjet LMS using lifetime license key, please follow this article.