TinyPortal

Development => Support => Installation => Topic started by: thebigman on January 04, 2007, 10:04:07 AM

Title: Moving Folders on server Help please
Post by: thebigman on January 04, 2007, 10:04:07 AM
I have installed TP and Forum in a folder called SMF on my server>
I was wondering how easy it was to now move it into the root of my server out of the folder.  What I would need to change etc.

Any help in this matter would be brilliant.
Thanks
Title: Re: Moving Folders on server Help please
Post by: G6Cad on January 04, 2007, 10:09:36 AM
Pretty easy with the right tool.

1. Download the SMF folder and all of the content to your local machine.
2. open the SMF folder onse it's done downloading.
3. upload all the files in the SMF folder to the rootfolder of the server.
4. Browse to simplemachines.org and go to the downloads/tools and download the repair_settings.php from there
5. Upload that to your forum root and point your browser to the file. http://www.yourdomain.com/repair_settings.php and change the url paths there (the blue lines are the guides)
Title: Re: Moving Folders on server Help please
Post by: thebigman on January 04, 2007, 10:38:33 AM
Thanks for the quick reply will try that.
Thanks again.
Title: Re: Moving Folders on server Help please
Post by: bluetail on January 04, 2007, 11:29:55 AM
cool... i was thinking of doing the exact same thing.

How did it go thebigman???
Title: Re: Moving Folders on server Help please
Post by: thebigman on January 04, 2007, 12:16:19 PM
JUST DOING IT NOW WILL LET YOU KNOW HOW I GET ON
Title: Re: Moving Folders on server Help please
Post by: JPDeni on January 04, 2007, 02:55:23 PM
One thing I found with moving stuff is that the themes have to be taken care of separately. After you get the move done, go to the Themes area and change the URLs and paths to the theme folders and theme images folders. Check that your smilies are in the right place, too.
Title: Re: Moving Folders on server Help please
Post by: thebigman on January 04, 2007, 03:59:06 PM
Everything seems to be working OK just using the repair_settings.php

Thanks
Title: Re: Moving Folders on server Help please
Post by: JPDeni on January 04, 2007, 04:51:09 PM
Cool. But... if you delete the old files and suddenly see that your themes aren't working right, check the paths and URLs.
Title: Re: Moving Folders on server Help please
Post by: Nikki Sixx on January 04, 2007, 05:44:16 PM
Nearly all Web hosts offer some kind of file manger, which most are dubbed, allowing for individual folder or files moves on the server. This approach is definitely recommended as it takes less than a second for the Web server to change the absolute file location in comparison to the timely matter of downloading the entire directory manually, then re-uploading to the desired location. So if this means is available

In the case you moved your SMF to another directory and need to update the directory locations, or did previous to a moving SMF but the path was incorrect, these are the values to change:

File-
/Settings.php

Find and Update-
$boardurl = 'http://domain.tld/*new_directory_here*';
$boarddir = '/*full_path_to_www_here*/public_html/*new_directory_here*';
$sourcedir = '/*full_path_to_www_here*/public_html/*new_directory_here*/Sources';

If the forum was moved to a different Web server, thus assuming a different MySQL database, this same file (/Settings.php) also contains the database connection string which would also require updating.

Find and Update-
$db_name = '*your_database_name*';
$db_user = '*your_database_user*';
$db_passwd = '*your_database_user_password*';

Normally all this data could be altered in handy little Web forms fond in the "Server Settings" page of the "Configuration" panel.

In the "settings" table of the SMF database, update the values for the following variables:
attachmentUploadDir (or http://domain.tld/forum_folder/index.php?action=manageattachments)
smileys_dir (or http://domain.tld/forum_folder/index.php?action=smileys)
smileys_url (or http://domain.tld/forum_folder/index.php?action=smileys)
avatar_directory (or http://domain.tld/forum_folder/index.php?action=manageattachments;sa=avatars)
avatar_url (or http://domain.tld/forum_folder/index.php?action=manageattachments;sa=avatars)

In the "themes" table of the SMF database, update the values for the following variables of all the unique "ID-THEME" columns present:
theme_url
images_url
images_url

Instead of manually editing database tables all the themes' paths/URLs can be amended by clicking "Themes and Settings" and updating the path/URL in the fields provided there.

Table "settings" variable "package_path", as well as all the specific paths in any given TinyPortal table should synchronize with the forum directory, so those are not necessary to revise. (Correct?)

Forum modifications with dedicated folders will also need similar treatment too.
Title: Re: Moving Folders on server Help please
Post by: bluetail on January 04, 2007, 09:18:08 PM
Great!! Thx for input all and nice to hear that your folder moving worked out fine bigman!!

:up:

I will give this a try one of these days too!!