Change your site's domain name

To change the domain name of your site, you must change the name in the file system, the database, and any integrated applications such as the Project Tracker or the Review Board. TeamForge provides a script for each of these.

  1. Make sure your site's database and file system are backed up.
  2. In the site-options.conf file, update the domain name (and hostname if needed), then save the file.
    DOMAIN_<Host_Name>=<Domain_Name>
    JAMES_POSTMASTER_EMAIL=root@<Domain_Name>
    JAMES_MTA_HOST=<Domain_Name> 
    For example:
    DOMAIN_mybox.supervillain.net=www.smileyface.com
    JAMES_POSTMASTER_EMAIL=root@www.smileyface.com
    JAMES_MTA_HOST=www.smileyface.com
  3. Recreate the runtime environment.
    • cd /opt/collabnet/teamforge-installer/8.1.0.1
    • ./install.sh -r -I -V
  4. Go to the TeamForge scripts directory.
    • cd /opt/collabnet/teamforge/runtime/scripts/
  5. Run the script to change the domain in the file system.
    • ./domain_change_fs.pl --old=www.myoldsitename.net --new=www.mynewsitename.net --dir=/opt/collabnet/teamforge/var | tee /tmp/domain_change_fs.out 2>&1
  6. Run the script to change the domain in the database.
    • ./domain_change_db.py --old=www.myoldsitename.net --new=www.mynewsitename.net > /tmp/domain_change_db.out 2>&1
  7. If your site has Project Tracker integrated, run the script to change the domain in Project Tracker.
    • ./domain_change_pt.py --oldDomain=www.myoldsitename.net --newDomain=www.mynewsitename.net > /tmp/domain_change_pt.out 2> &1
  8. If your site has Review Board integrated, run the following commands:
    1. Start the TeamForge application services.
      • sudo /etc/init.d/collabnet start all
    2. Update the install.conf file with the new domain name.
      • vi /opt/collabnet/RBInstaller-1.7.0.0.7/installer/install.conf
    3. Recreate the runtime on Review Board.
      • sudo python ./install.py -r
    4. Restart the TeamForge application services.
      • sudo /etc/init.d/collabnet restart all