TinyPortal

Development => Support => Installation => Topic started by: Skyview on March 05, 2007, 01:47:22 AM

Title: Move TP/SMF to new domain
Post by: Skyview on March 05, 2007, 01:47:22 AM
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?


Title: Re: Move TP/SMF to new domain
Post by: Skyview on March 05, 2007, 03:58:58 AM
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.
Title: Re: Move TP/SMF to new domain
Post by: IchBin on March 05, 2007, 04:30:37 AM
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.
Title: Re: Move TP/SMF to new domain
Post by: Skyview on March 05, 2007, 04:48:19 AM
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:
Title: Re: Move TP/SMF to new domain
Post by: IchBin on March 05, 2007, 04:50:46 AM
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. :)
Title: Re: Move TP/SMF to new domain
Post by: Skyview on March 05, 2007, 04:58:05 AM
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.
Title: Re: Move TP/SMF to new domain
Post by: G6Cad on March 05, 2007, 08:00:43 AM
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) :)
Title: Re: Move TP/SMF to new domain
Post by: Skyview on March 05, 2007, 09:40:58 AM
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.
Title: Re: Move TP/SMF to new domain
Post by: G6Cad on March 05, 2007, 10:36:27 AM
I didnt had my cup of tea, so kind of blurred away in the posts  :2funny:
Title: Re: Move TP/SMF to new domain
Post by: Skyview on March 05, 2007, 11:01:45 AM
 :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