PDA

View Full Version : Can someone help please - Moved server issue


christian gate
01-15-2012, 11:59 PM
Hi,
I have moved to another server and I changed the details of the config.php to the new database info - but first the database in the cpanel - mysql file size showing 0 (not the upload allowed but the size of the forum database restore file).

And have a look at the forum page www.christian-gate.com (http://www.christian-gate.com)

Regards

kh99
01-16-2012, 12:01 AM
You have a problem in your config.php file. What did you use to edit it? Some programs (like notepad) don't work for editing php scripts.

christian gate
01-17-2012, 01:02 AM
Wordpad

LifesGreatestGift
01-17-2012, 01:09 AM
did you import the old database into the new cPanel?

Create a database, go to phpMyAdmin, select the database, and then click import, browse the file and import it so the new database has all the posts/forums/members etc of the old server.

then create a user in the database page, assign the user to the vB database with proper permissions (all), change config.php on new server to reflect the new db and user name and pass.

also... download 'Notepad++' to edit your php files in the future. worse case scenario, use notepad, wordpad messes up the encoding.

kh99
01-17-2012, 01:11 AM
also... download 'Notepad++' to edit your php files in the future. worse case scenario, use notepad, wordpad messes up the encoding.

Yeah - it's wordpad that causes the problems, not notepad like I mentioned above.

HMBeaty
01-17-2012, 01:16 AM
Actually, for the record, notepad screwed some files up on me as well. So now, all I use is notepad++

kh99
01-17-2012, 01:28 AM
lol...OK, it's both. :)

In any case, I'm pretty sure that's part of the OP's problem.

christian gate
01-17-2012, 01:37 AM
I downloaded the notepad++ but how can I fix the config file or I have to download a new copy?

LifesGreatestGift
01-17-2012, 01:41 AM
download new copy, and open it with notepad++ to edit it.

HMBeaty
01-17-2012, 01:42 AM
It would be best to download a new copy

christian gate
01-17-2012, 02:09 AM
ok, can I just ask what is the best way to backup the database? I follow the LifesGreatestGift steps to import it, but what about back up, thanks

HMBeaty
01-17-2012, 02:11 AM
My recommendation...

https://vborg.vbsupport.ru/showthread.php?t=231481

I make a backup on my server once a day :)

christian gate
01-17-2012, 02:23 AM
Thanks everyone, it's been fixed