Skip to main content
Moving from directory to root Started by Allan · · Read 6872 times 0 Members and 1 Guest are viewing this topic. previous topic - next topic

Moving from directory to root

I know SMF has a repair tool to help do this, so I wanted to ask if there was and easier way instead of changing everything in the admin panel before moving the files. I know you have to do the board settings and remove the /forum (directory) and then have to change all the image paths in themes, attachments avatars and so on.

Re: Moving from directory to root

Reply #1

It's still repair_settings.php you'd have to use..
https://github.com/elkarte/tools
Haven't tested for quite a while but I suppose it should work as expected..
Thorsten "TE" Eurich
------------------------

Re: Moving from directory to root

Reply #2

Sounds great thank you, will give it go when I get home from work tonight.

Re: Moving from directory to root

Reply #3

Maybe related, is this repair tool support changing domain name as well?
192.MY.ID: Forum ISP Indonesia.

Re: Moving from directory to root

Reply #4

Yep.
It may have some problems if the database password (or database name, I don't remember) is wrong.
Bugs creator.
Features destroyer.
Template killer.

Re: Moving from directory to root

Reply #5

just downloaded the master, do I just use the repair_settings.php of do I upload the whole folder?


ETA: nevermind got the answer  ;)
Last Edit: May 05, 2014, 06:56:28 pm by Allan
Host-Hunters- Free advertisement for hosts.
KnD Hosting- Affordable hosting

Re: Moving from directory to root

Reply #6

For the record only repair_settings.php :)
Bugs creator.
Features destroyer.
Template killer.

Re: Moving from directory to root

Reply #7

OK i moved the files and changed all the settings to direct to the root. But when I moved around the forum everything comes up with the root/forum and not the root. I tried running the repair_settings.php but I get a 500 error and I have the permission set to 777. Any help would be great site is www.dont-bully.me

Re: Moving from directory to root

Reply #8

Are you sure 777 is not the issue itself? Some servers don't like that value.
Bugs creator.
Features destroyer.
Template killer.

 

Re: Moving from directory to root

Reply #9

If I don't do 777 the file comes up with access not allowed.

Re: Moving from directory to root

Reply #10

Sorry for double post-- when I try to change the database paths in the admin panel to have direct to root and the forum, It says settings are saved but they don't update and stay saying forum.

Re: Moving from directory to root

Reply #11

Quote from: Allan – If I don't do 777 the file comes up with access not allowed.
O_o
That's odd, repair_settings shouldn't need to be 777 to as far as I remember. It doesn't have to operate on itself (not even deleting itself).

Quote from: Allan – when I try to change the database paths in the admin panel to have direct to root and the forum, It says settings are saved but they don't update and stay saying forum.
I think you now have a bit of a messed install. lol
Just to give you an idea, if I start from the url you posted before:
http://www.dont-bully.me/
all the links point to:
http://dont-bully.me/forum/index.php
see: no "www" and there is "forum".
Any link on that second page point to:
http://dont-bully.me/index.php
again no "www" (and that may be what you want), but no "forum".

So you in fact have two forums: one into the root and one in a "forum" subdir and you are bouncing from one to another each time a link is clicked or a form is POST'ed.

Considering you are having issues with repair settings, what I'd suggest to cut down any hassle is:
via ftp open Settings.php in the root of your forum
locate the $boardurl variable
* fix it removing the "/forum" part.
Bugs creator.
Features destroyer.
Template killer.

Re: Moving from directory to root

Reply #12

Thank you sir, that did the trick. Now to see why portal boxes doubled on every page except index lol
Again thank you.