Tags:
create new tag
view all tags

SID-02409: Change our domain name

Status: Asked Asked TWiki version: 6.0.2 Perl version: v5.18.2
Category: CategoryDeployment Server OS: openSUSE LEAP 42.2 Last update: 6 years ago

Hello,

The domain name we have run our twiki under has expired and we changed the server name to a new domain.

We use chef to configure multiple front end nodes and have rebuilt them from scratch with the new top level domain name but there still appears to be references to the old domain in the system.

Users attempting to edit content can only save changes for about thirty seconds. After that, when they click Save, they're returned to the login page (we're using LDAP authentication) and if they re-enter their credentials, they get a cross-site linking error, or weirder, they're returned to an edit page for the login page itself.

If I do a recursive grep of the data directories for the old domain name I get thousands of entries.

What do I need to do to migrate our TWIKI site to a new domain name?

-- Randy Rue - 2019-06-20

Discussion and Answer

You can do a global search and replace per web using the GlobalReplacePlugin. Be careful, and use regular expressions to safely replace old domain names in TWiki docs with the new one.

BTW, as long as contributors use TWiki internal links this problem would not happen:

  • Otherweb.SomeTopicName
  • %ATTACHURL%/SomeFile.doc
  • %PUBURL%/Otherweb/OtherTopic/SomeFile.doc

-- Peter Thoeny - 2019-06-21

I'll have a look at the plugin and run it against a copy of our data.

Will this resolve the edit/save problems?

(and I'm not hopeful we could retrain our users to use the right links but we shouldn't need to rename it again)

-- Randy Rue - 2019-06-21

My rebuild of the server nodes with the changed base URL resulted in the correct entries in LocalSite.cfg in /usr/local/twiki-6.0.2/lib and bin but I see copies of that file in the data directory's lib directory with the wrong entry. Should that also be changed? Are there other config files in the data dir that need changing, and will the global replace plugin include those?

-- Randy Rue - 2019-06-21

The only system files where TWiki is configured are twiki/bin/LocalLib.cfg and twiki/lib/LocalSite.cfg. You can review and fix entries to match your new setup.

Alternatively, you can do a fresh install using the ApacheConfigGenerator.

-- Peter Thoeny - 2019-06-22

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Asked
Title Change our domain name
SupportCategory CategoryDeployment
TWiki version 6.0.2
Server OS openSUSE LEAP 42.2
Web server Apache/2.4.23
Perl version v5.18.2
Browser & version chrome
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2019-06-22 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.