MyBB Community Forums

Full Version: move myBB from a subdirectory to main directory
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Now that I have finished migrating and everything is working, we have moved SMF into a different directory and changed its config to follow. However, when I tried to move myBB from from its subdirectory to the main directory, it breaks everything. How can I configure it so it can read everything from it?

In essence, the path to mybb is /home/foobar/public_html/mybb

I want to move it to /home/foobar/public_html

However, I lose images and everything... so I'm trying to figure out how to get it to work properly...

just move to public_html and do following things:

In general configuration in settings from ACP:

set:

cookie domain: .yourdomain.com

and

cookie path to: /

and try now.
Open inc/settings.php

Find:
Quote:$settings['bburl']
Change it to new board URL.

and
Find:
Quote:$settings['cookiepath'] = "/mybb/";

Change it to:
Find:
Quote:$settings['cookiepath'] = "/";

After that, login to your ACP, and do the same in Configuration -> General Configuration.
(2011-07-14, 10:52 AM)kavin Wrote: [ -> ]Open inc/settings.php

Find:
Quote:$settings['bburl']
Change it to new board URL.

and
Find:
Quote:$settings['cookiepath'] = "/mybb/";

Change it to:
Find:
Quote:$settings['cookiepath'] = "/";

After that, login to your ACP, and do the same in Configuration -> General Configuration.
THIS IS STRICTLY NOT ADVISABLE.

There is no need of editing setting file instead when it can be done from ACP.
(2011-07-14, 01:36 PM)crazy4cs Wrote: [ -> ]THIS IS STRICTLY NOT ADVISABLE.

There is no need of editing setting file instead when it can be done from ACP.

Really? Toungue
You can't access ACP, unless you do the change before moving files.
If you try to access ACP after moving files, it will automatically log you out after every page load, as cookie path is incorrect.
(2011-07-14, 01:38 PM)kavin Wrote: [ -> ]
(2011-07-14, 01:36 PM)crazy4cs Wrote: [ -> ]THIS IS STRICTLY NOT ADVISABLE.

There is no need of editing setting file instead when it can be done from ACP.

Really? Toungue
You can't access ACP, unless you do the change before moving files.
If you try to access ACP after moving files, it will automatically log you out after every page load, as cookie path is incorrect.
If thats the case, yes, it needs to be done from settings.php through FTP. Wink
(2011-07-14, 01:41 PM)crazy4cs Wrote: [ -> ]
(2011-07-14, 01:38 PM)kavin Wrote: [ -> ]
(2011-07-14, 01:36 PM)crazy4cs Wrote: [ -> ]THIS IS STRICTLY NOT ADVISABLE.

There is no need of editing setting file instead when it can be done from ACP.

Really? Toungue
You can't access ACP, unless you do the change before moving files.
If you try to access ACP after moving files, it will automatically log you out after every page load, as cookie path is incorrect.
If thats the case, yes, it needs to be done from settings.php through FTP. Wink

No, if that's the case there's another way.
Change the settings in the database (mybb_settings table) and then...

1. Download settings.php to your computer
2. Delete settings.php from the FTP host (that's why we backed it up before)
3. Go to your forum and a new settings.php file with the new settings will be created.
4. If everything's okay, delete settings.php from your computer.
(2011-07-14, 03:01 PM)Zukdeen Wrote: [ -> ]No, if that's the case there's another way.
Change the settings in the database (mybb_settings table) and then...

1. Download settings.php to your computer
2. Delete settings.php from the FTP host (that's why we backed it up before)
3. Go to your forum and a new settings.php file with the new settings will be created.
4. If everything's okay, delete settings.php from your computer.

lol. Why choose a hard path when there is much better way around?
People would harm their database if they don't know what they are doing.

Board moved, first suggestion worked fine (even though I had to clear my cookies)