vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Can someone help please - Moved server issue (https://vborg.vbsupport.ru/showthread.php?t=277039)

christian gate 01-15-2012 11:59 PM

Can someone help please - Moved server issue
 
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

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

Quote:

Originally Posted by LifesGreatestGift (Post 2288807)
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


All times are GMT. The time now is 03:08 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01436 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete