ElkArte Community

Project Support => General ElkArte discussions => Topic started by: Allan on May 04, 2014, 07:22:08 pm

Title: Moving from directory to root
Post by: Allan on May 04, 2014, 07:22:08 pm
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.
Title: Re: Moving from directory to root
Post by: TE on May 05, 2014, 01:28:17 am
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..
Title: Re: Moving from directory to root
Post by: Allan on May 05, 2014, 07:21:36 am
Sounds great thank you, will give it go when I get home from work tonight.
Title: Re: Moving from directory to root
Post by: kucing on May 05, 2014, 09:32:44 am
Maybe related, is this repair tool support changing domain name as well?
Title: Re: Moving from directory to root
Post by: emanuele on May 05, 2014, 09:58:11 am
Yep.
It may have some problems if the database password (or database name, I don't remember) is wrong.
Title: Re: Moving from directory to root
Post by: Allan on May 05, 2014, 06:45:44 pm
just downloaded the master, do I just use the repair_settings.php of do I upload the whole folder?


ETA: nevermind got the answer  ;)
Title: Re: Moving from directory to root
Post by: emanuele on May 06, 2014, 02:21:49 am
For the record only repair_settings.php :)
Title: Re: Moving from directory to root
Post by: Allan on May 07, 2014, 07:35:28 pm
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
Title: Re: Moving from directory to root
Post by: emanuele on May 08, 2014, 02:50:44 am
Are you sure 777 is not the issue itself? Some servers don't like that value.
Title: Re: Moving from directory to root
Post by: Allan on May 08, 2014, 07:17:46 am
If I don't do 777 the file comes up with access not allowed.
Title: Re: Moving from directory to root
Post by: Allan on May 08, 2014, 07:49:45 am
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.
Title: Re: Moving from directory to root
Post by: emanuele on May 08, 2014, 09:24:37 am
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.
Title: Re: Moving from directory to root
Post by: Allan on May 08, 2014, 09:41:19 am
Thank you sir, that did the trick. Now to see why portal boxes doubled on every page except index lol
Again thank you.