TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 287
  • Total: 287

Move TP/SMF to new domain

Started by Skyview, March 05, 2007, 01:47:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Skyview

I am hoping someone can provide the path of least resistance to moving my TP/SMF install to a new domain (on the same server). This is a cpanel/whm system, so I am wondering if I can just make a home backup in cpanel and restore it to the new domain via cpanel restore. Of course, then I would have to manually edit certain files I am guessing to change any absolute paths to reflect the new domain (settings.php is the one that I know of) but would it be possible to just use the same db user and login credentials and not do anything to the database itself since these domains are both on the same server and the mysql is local? Have never tried this before so I thought I would ask before diving in. Is this an instance when the repair settings file would be applicable at all?



Skyview

OK. I went ahead and dove in  :o Here is what I have tried:

1. I restored the cpanel backup to the new domain
2. modified settings.php to reflect new paths, etc.
3. Went to new site in browser. To my surprise, the db portion actually works just fine referencing the mysql db on the other account. Bad thing is the themes were all screwed up.
4. uploaded and ran repair settings - there were a few things I hadn't changed.
5. reset settings.php back to 644. deleted repair settings.
6. Went to site in browser again. Things actually seem to work on the new domain but only using the default - core theme. Everything else is still hosed with regard to the themes. I only need oxygen for TP to work which I had set to my forum default, but neither it or any of the others I had installed work now.

Anyone able to let me know what I would need to do to get the themes working again? Thanks.

IchBin

You'll need change the paths for all themes. Admin panel > Themes and Layout > Theme settings > at the bottom click to "attempt to reset all themes" and make sure the path is correct. If that doesn't work you'll need to change each one manually.

Skyview

Bless you! I hadn't even noticed that "Reset Theme URLs and Directories" option before. While I was waiting, I went into phpmyadmin and looked around. I found smf_themes and saw where things were still pointing to the wrong place for everything but the default theme, but was dreading manually editing those table records thinking I might break something. I'm guessing those records in the smf_themes table is what that reset option modified. I still have a few little things to clean up with the gallery mod, etc. but things seem to be working again, many thanks  :up:

IchBin

My pleasure! You actually don't have to change them in the DB manually, you could change theme in each theme settings manually if there was no way to do it to "all" of them at the same time. :)

Skyview

Well...think it would be kinda hard to do that when it wouldn't even recognize any of the other themes  :o unless you meant some other way.

G6Cad

Admin/Themes and layout/Themes and settings/
In the bottom you have a box there you can "batch" change the url for where the themes and theme inages are located.
Change them to the same as the default theme (default is your guide) :)

Skyview

Oh thanks. It's fixed (see above) I just wanted to say that the "other" method that was mentioned wouldn't have worked in this case because it wouldn't even recognize the other themes. Thanks for the reply though.

G6Cad

I didnt had my cup of tea, so kind of blurred away in the posts  :2funny:

Skyview

 :laugh: :laugh: :laugh: Believe me, I DO understand that. I am up all hours sometimes working on these things and eventually I have to call it quits because things all start running together  :o

This website is proudly hosted on Crocweb Cloud Website Hosting.