Changing the domain in PHPCMS involves several steps:
Before starting the domain change, make sure to back up all website files and the database to prevent any accidental data loss.
Connect to your database and open the relevant PHPCMS tables, such as phpcms_config and phpcms_category. Search for all instances of the old domain and replace them with the new domain.
Open the ./config/system.php file, locate the DOMAIN variable, and change it to your new domain.
Open the templates in the ./templates/default/system directory and replace all URLs containing the old domain with the new domain.
Visit ./index.php?m=admin&c=cache_all&a=init&sid=1 to clear the system cache.
If you are using plugins, check their configuration files and ensure that the domain has been updated to the new one.
Visit your website and check for any errors or broken links. If any issues are found, return to the relevant step and make corrections.