Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: springsjogrensworld on May 19, 2022, 03:06:42 PM

Title: upgraded to 2.1.2, but now want to move to main directory
Post by: springsjogrensworld on May 19, 2022, 03:06:42 PM
I upgraded to 2.1.2 and it went smoothly.
Now I want to move it sjogrensworld-dot-org/forums to base, sjogrensworld-dot-org
I may be doing it wrong, went into installation and edited. I removed forums from top two, and not it is telling me SMF files missing.

Can you direct me to my mistake please?


so meanwhile I saw a clone choice, and that worked, but can I now safely delete the folder one?
Title: Re: upgraded to 2.1.2, but now want to move to main directory
Post by: Doug Heffernan on May 19, 2022, 03:10:26 PM
Quote from: springsjogrensworld on May 19, 2022, 03:06:42 PMI upgraded to 2.1.2 and it went smoothly.
Now I want to move it sjogrensworld-dot-org/forums to base, sjogrensworld-dot-org
I may be doing it wrong, went into installation and edited. I removed forums from top two, and not it is telling me SMF files missing.

Can you direct me to my mistake please?

Upload the forum folder to your pc and then upload its content to the root of the /public_html/ folder and run the repair_settings.php tool to update all the urls and paths to point to the new location.
Title: Re: upgraded to 2.1.2, but now want to move to main directory
Post by: Arantor on May 19, 2022, 03:11:55 PM
Usually you need to update a bunch of configuration, please see What is repair_settings.php? (https://wiki.simplemachines.org/smf/Repair_settings.php)
Title: Re: upgraded to 2.1.2, but now want to move to main directory
Post by: springsjogrensworld on May 19, 2022, 03:18:32 PM
I have that file already on my desktop. I need to ftp it into the new clone directory? then somehow run it?
Title: Re: upgraded to 2.1.2, but now want to move to main directory
Post by: Arantor on May 19, 2022, 03:20:00 PM
Yes, you have to upload it to the server, into the same folder where your forum now is, then browse to it (put the URL as yourforum/repair_settings.php instead of the usual yourforum/index.php)
Title: Re: upgraded to 2.1.2, but now want to move to main directory
Post by: Doug Heffernan on May 19, 2022, 03:21:51 PM
Quote from: springsjogrensworld on May 19, 2022, 03:18:32 PMI have that file already on my desktop. I need to ftp it into the new clone directory? then somehow run it?

Yes, after you upload it inside your /public_html/ folder in this case, you run it by pointing the browser to it.

sjogrensworl.org/repair_settings.php
You can read more about it here:

https://wiki.simplemachines.org/smf/Repair_settings.php

Hope it helps.
Title: Re: upgraded to 2.1.2, but now want to move to main directory
Post by: springsjogrensworld on May 19, 2022, 03:26:57 PM
oo, I ran it, and it changed to recommended settings on lots of items, but everything it put in new folder like images, were all in that main folder,. nothing from the old forums folder.
after I go through everything to make sure it is running correctly, may I then delete the /forums folder?

Many thanks, you guys have given me confidence to do this.
Title: Re: upgraded to 2.1.2, but now want to move to main directory
Post by: Doug Heffernan on May 19, 2022, 05:20:12 PM
Quote from: springsjogrensworld on May 19, 2022, 03:26:57 PMoo, I ran it, and it changed to recommended settings on lots of items, but everything it put in new folder like images, were all in that main folder,. nothing from the old forums folder.

That is the designed behaviour. It will make sure that all the paths and urls will point to the new location.

Quote from: springsjogrensworld on May 19, 2022, 03:26:57 PMafter I go through everything to make sure it is running correctly, may I then delete the /forums folder?

Yes, it should be deleted after you are finished with it. Leaving that tool in the server space when not needed poses a security risk.
Title: Re: upgraded to 2.1.2, but now want to move to main directory
Post by: Doug Heffernan on May 22, 2022, 05:36:53 PM
Hello @springsjogrensworld, I am following up on this. Did you manage to fix the issues after running the repaid_settings.php tool?