changing root

Started by mittal, May 16, 2010, 08:38:39 AM

Previous topic - Next topic

mittal

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.


Mick.

You want to move from a folder to root?

Like this?


From mysite.com/forums to mysite.com  ?

mittal

yes u rite.

i want to move from folder to main root.

Mick.

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?

mittal

no it is not inactive.

it is working.

Mick.

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.

mittal

i already have that coverter.

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

Mick.

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.


mittal

yes it converted all posts and members in forums folder which is in mybb database.

Mick.

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


mittal

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

Mick.

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

mittal

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.


Mick.

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

mittal

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

Mick.

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.

mittal

but the repair file which u said me to download is in repair_settings.htm

it is not .php file

Mick.

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.... ;)

Advertisement: