Simple Machines Community Forum

SMF Support => Converting to SMF => MyBB => Topic started by: mittal on May 16, 2010, 08:38:39 AM

Title: changing root
Post by: mittal on May 16, 2010, 08:38:39 AM
hello

i was using mybb before

i installed smf in other path and it it running fine.

i want to move it to my main path root so how can i move it?

how can i change root from admin cp if i move my all files to my main root directory?

it will not work bcoz i moved files and root path is different in admin cp.

Title: Re: changing root
Post by: Mick. on May 16, 2010, 08:49:20 AM
You want to move from a folder to root?

Like this?


From mysite.com/forums to mysite.com  ?
Title: Re: changing root
Post by: mittal on May 16, 2010, 08:54:52 AM
yes u rite.

i want to move from folder to main root.
Title: Re: changing root
Post by: Mick. on May 16, 2010, 08:58:12 AM
Quote from: mittal on May 16, 2010, 08:54:52 AM
yes u rite.

i want to move from folder to main root.

Great.   Is your mybb forum inactive?
Title: Re: changing root
Post by: mittal on May 16, 2010, 09:07:42 AM
no it is not inactive.

it is working.
Title: Re: changing root
Post by: Mick. on May 16, 2010, 09:12:12 AM
Quote from: mittal on May 16, 2010, 09:07:42 AM
no it is not inactive.

it is working.

Then you better off using a converter:
http://download.simplemachines.org/?converters;software=mybb

It should convert in your root if specified.
Title: Re: changing root
Post by: mittal on May 16, 2010, 09:22:13 AM
i already have that coverter.

i used that converter to copy mybb tables into smf tables in my database.
Title: Re: changing root
Post by: Mick. on May 16, 2010, 09:28:22 AM
Quote from: mittal on May 16, 2010, 09:22:13 AM
i already have that coverter.

i used that converter to copy mybb tables into smf tables in my database.

Did it convert everything to the new SMF in /forum then?

All posts, users, etc.?

I ask because i dont want you to remove mybb if its not converted.

Title: Re: changing root
Post by: mittal on May 16, 2010, 01:22:07 PM
yes it converted all posts and members in forums folder which is in mybb database.
Title: Re: changing root
Post by: Mick. on May 16, 2010, 01:32:18 PM
Quote from: mittal on May 16, 2010, 01:22:07 PM
yes it converted all posts and members in forums folder which is in mybb database.

So pretty much both mybb and smf are working right?

Mybb woking in mysite.com and smf working in mysite.com/forums right?

To make it safe, create a folder called "oldmybbforum" like this:  mysite.com/oldmybbforum

Move all mybb files and folder to the new created folder: mysite.com/oldmybbforum

At this point you lost access to mysite.com since everything was moved.

Then all your SMF files and folders move them to the root leaving /forums empty.

At this point you still dont have access to mysite.com

Then in your root where your new smf files and folders are located,

Find:

settings.php  and change the URL in there.   It should say something like: mysite.com/forums change it to mysite.com and save.

Now smf should be working in the root and mybb should be in mysite.com/oldmybbforum

Title: Re: changing root
Post by: mittal on May 16, 2010, 02:40:09 PM
thanks i did as u said.

but i did not changed anything in settings.php then also my site is working in mydomain.com/ after copying all files from mydomain.com/forums
Title: Re: changing root
Post by: Mick. on May 16, 2010, 02:47:02 PM
Quote from: mittal on May 16, 2010, 02:40:09 PM
thanks i did as u said.

but i did not changed anything in settings.php then also my site is working in mydomain.com/ after copying all files from mydomain.com/forums

If your SMF is now in mydomain.com then go to

settings.php and find:
$boardurl = 'http://www.bluedevilcustoms.com/devsite'; # URL to your forum's folder. (without the trailing /!)

change the url to where SMF is,   hxxp://www.mydomain.com
Title: Re: changing root
Post by: mittal on May 16, 2010, 02:55:35 PM
ok i done as usaid.

i also changed like below here

$boarddir = '/home/mysite/public_html';      # The absolute path to the forum's folder. (not just '.'!)
$sourcedir = '/home/mysite/public_html/Sources';      # Path to the Sources directory.
$cachedir = '/home/mysite/public_html/cache';      # Path to the cache directory.

Title: Re: changing root
Post by: Mick. on May 16, 2010, 03:01:04 PM
What happens when you go to mysite.com?

Use this repair settings.....

http://docs.simplemachines.org/index.php?topic=663

Download the zip and load the repair_settings.php file in your root.

Then access is as mysite.com/repair_settings.php  and follow thru.   Once done, rename the file like 22repair_settings.php
Title: Re: changing root
Post by: mittal on May 16, 2010, 03:04:09 PM
i changed board url in settings.php and also changed  into

$boarddir = '/home/mysite/public_html';      # The absolute path to the forum's folder. (not just '.'!)
$sourcedir = '/home/mysite/public_html/Sources';      # Path to the Sources directory.
$cachedir = '/home/mysite/public_html/cache';      # Path to the cache directory.


is above path is alrite for mydomain.com i did in settings.php
Title: Re: changing root
Post by: Mick. on May 16, 2010, 03:05:23 PM
Quote from: mittal on May 16, 2010, 03:04:09 PM
i changed board url in settings.php and also changed  into

$boarddir = '/home/mysite/public_html';      # The absolute path to the forum's folder. (not just '.'!)
$sourcedir = '/home/mysite/public_html/Sources';      # Path to the Sources directory.
$cachedir = '/home/mysite/public_html/cache';      # Path to the cache directory.


is above path is alrite for mydomain.com i did in settings.php

yes.   But using the repair_settings.php will correct all that.
Title: Re: changing root
Post by: mittal on May 16, 2010, 03:13:42 PM
but the repair file which u said me to download is in repair_settings.htm

it is not .php file
Title: Re: changing root
Post by: Mick. on May 16, 2010, 03:16:43 PM
Quote from: mittal on May 16, 2010, 03:13:42 PM
but the repair file which u said me to download is in repair_settings.htm

it is not .php file

Its there. Just hard to see the link.

I attached it below.... ;)