Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
2 registered (Kelvin, Peter), 33 Guests and 16 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 05/13/08
Posts: 596
Top Posters (30 Days)
Ruben 49
DennyP 24
Gizmo 23
Dunny 17
SteveS 14
AllenAyres 12
dbremer 10
SD 9
drkknght00 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#171134 - 12/25/06 01:30 PM Where are config.inc.php parameters ?
smallufo Offline
enthusiast
Registered: 06/05/06
Posts: 265
Loc: Taiwan
I am trying to upgrade my UBBThreads 6.5.4 to 7.0 (and to 7.0.2)
But I have problem using importers .

I first rename my old ubbthreads/ to ubbthreads.654/ , and place 7.0 to ubbthreads/ directory. And then copy threads_import.zip's content to importers/ directory.

After bring up ubbthreads/importers/threads_import.php in browser , It shows cannot connect to MySQL error , and I know I have to edit parameters in includes/config.inc.php .

I open config.inc.php , and found it is almost empty , just two lines :

 Code:
$VERSION = "7.0";
$config = array ();


I then copy my OLD threads.654/includes/config.php's content to it , except the $VERSION parameter.

After bring up threads_import.php in browser , it still shows cannot to mysql server , I feel strange , and check the parameters ...

 Code:
$VERSION = "7.0";
$config['dbtype'] = "mysql";
$config['dbserver'] = "db";
$config['dbuser'] = "xxx";
$config['dbpass'] = "yyy";
... (skip)...


These settings are just OK , and I can connect manually. I don't know what's wrong ... I just don't know what parameters it needed.

After I inspect into new ubbthreads's mysql.inc.php , I found
 Code:
mysql_connect($config['DATABASE_SERVER'],.....

I finally realized that the parameters's name are changed !!!
Why isn't there a script to transform UBB6.5's parameters name to UBB7 !?

Where can I find all UBB7's correct parameters in config.inc.php ? Why nobody else has this problem ?
_________________________

English is not my native language.
I try my best to express my thought precisely.
I hope you understand what I mean.
If any misunderstanding results from culture gaps , I apologize first.
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#171136 - 12/25/06 01:55 PM Re: Where are config.inc.php parameters ? [Re: smallufo]
jgeoff Offline
Pooh-Bah
Registered: 08/08/06
Posts: 1922
Loc: NJ
config.inc.php is created during the install automatically. It's the file that your control panel settings are saved to. The software comes with that 2-line version, but when I check mine on the server it's 231 lines long. I don't recall exactly, but the db info is probably asked of you during the install - you shouldn't have to edit that file.

PS - You probably should've left your old install directory as-is and created a new one for 7.x. Otherwise, all your search engine links will be broken or at the very least cause quite a bit of confusion. I would undo that, install 7.x to a new directory, and then install the redirect scripts when you're up and ready to go.


Edited by jgeoff (12/25/06 01:58 PM)
Edit Reason: P.S.
_________________________
GangsterBB.NET (Ver. 7.5.6)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Chrome, Firefox, & Safari (Win7 and iPhone); No IE, ever!
Top
#171138 - 12/25/06 02:36 PM Re: Where are config.inc.php parameters ? [Re: jgeoff]
smallufo Offline
enthusiast
Registered: 06/05/06
Posts: 265
Loc: Taiwan
So , I have to first create a new DB , install UBB7 , and finally import old DB to new DB ?

Is there any way to skip 'create new DB , install UBB7 ' step ?
_________________________

English is not my native language.
I try my best to express my thought precisely.
I hope you understand what I mean.
If any misunderstanding results from culture gaps , I apologize first.
Top
#171139 - 12/25/06 03:20 PM Re: Where are config.inc.php parameters ? [Re: smallufo]
jgeoff Offline
Pooh-Bah
Registered: 08/08/06
Posts: 1922
Loc: NJ

I installed from .Classic, not .Threads, but I'm still gonna say yes, you need to create a new database for 7.x. Did you follow the instructions in the 7.x Install Guide? After installation, you'd run the appropriate importer (From UBB.threads 6.5.x) available in the Members Area...
_________________________
GangsterBB.NET (Ver. 7.5.6)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Chrome, Firefox, & Safari (Win7 and iPhone); No IE, ever!
Top
#171140 - 12/25/06 03:21 PM Re: Where are config.inc.php parameters ? [Re: smallufo]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
I am half way through doing this now... (almost 24 hours so far \:\( )

What I did was...

1) Create a copy of my 6.5.x database
2) Create a new folder for threads 7.x under my domain
3) Install threads 7.x into new folder
4) Run impoter on copy of 6.5.x database.

The original forums stay up and you should be able to log into the new ones as soon as groups and members have been imported (ie once it starts on the topics)

There may be another method, but this way if the import fails, the original forums remain untouched.

The only major item remains to be done is to change lots of links \:\(
Top
#171148 - 12/25/06 07:02 PM Re: Where are config.inc.php parameters ? [Re: Ian]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
Standard Upgrade Procedure:
1. Backup your current (working) install.
2. Install UBB7 to the "Create New User" screen.
3. Run the importer.

Note that your original forums need to be functioning at least for the import, after the import you can replace the url's or old scripts with redirectors to your new forum install.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Forum Stats
10489 Members
36 Forums
33841 Topics
181696 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image