Go Back   Pligg Forum > Pligg Help > Installation and Upgrade Help
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-06-2006, 07:38 PM
ifmanis5 ifmanis5 is offline
New Pligger
 
Join Date: Aug 2006
Posts: 24
Downloads: 0
Uploads: 0
Thanks: 3
Thanked 2 Times in 2 Posts
Install Help: re-mapping database

I had my web hosting company copy all of the files from one of my domains (site A) running pligg on to another domain I own (site B).

Everything is working fine except that it appears the the files on site B are still referencing the database on domain A. So when I make a change on Site B the changes are showing up on site A and site B.

Can anyone let me know how to change site B's files to map to the database on site B?

Thx / Rob
Reply With Quote
Sponsored Links
Check out the New Modules at the Pligg Pro Shop.
  #2 (permalink)  
Old 09-06-2006, 07:50 PM
kbeeveer46's Avatar
kbeeveer46 kbeeveer46 is offline
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,579
Downloads: 62
Uploads: 6
Thanks: 255
Thanked 651 Times in 515 Posts
in your libs/dbconnect.php file are your database details. You will need to change them to use Site B's database. You may have to create a database and export Site A's into the new one.
__________________
I accept donations for my time helping users like you on the forum and IRC.

FREE and premium Pligg Web Hosting (NO ads, Includes MySQL, PHP, PHPMyAdmin, and Control Panel) - PM me for discounts on premium packages or if you would like a custom-made package. Paypal accepted.
Reply With Quote
The Following User Says Thank You to kbeeveer46 For This Useful Post:
  #3 (permalink)  
Old 09-06-2006, 10:26 PM
ifmanis5 ifmanis5 is offline
New Pligger
 
Join Date: Aug 2006
Posts: 24
Downloads: 0
Uploads: 0
Thanks: 3
Thanked 2 Times in 2 Posts
Install Help: re-mapping database

Quote:
Originally Posted by kbeeveer46 View Post
in your libs/dbconnect.php file are your database details. You will need to change them to use Site B's database. You may have to create a database and export Site A's into the new one.
Worked like a charm. Thanks!
Reply With Quote
  #4 (permalink)  
Old 09-10-2006, 10:06 PM
ifmanis5 ifmanis5 is offline
New Pligger
 
Join Date: Aug 2006
Posts: 24
Downloads: 0
Uploads: 0
Thanks: 3
Thanked 2 Times in 2 Posts
One more DB issue

Quote:
Originally Posted by ifmanis5 View Post
Worked like a charm. Thanks!
Thanks again for your help.

I've tested a few things and the vote option on a story is still linking go the original site A, not site b.

I changed my dbconnect file to reference the new host. Are there any other files I need to change?

It's weird b/c the story shows up on the right site, site B, after its poted, but if you want to vote on the story it hangs on the page and you get a javascript error:

>>>
Line:70
Char: 8
Error: Access is denied
Code:0
Url:http://www.craigsotherlist.org
<<<

And when you mouseover the vote area next to the story you can see the url to site A in the IE status area in the lower left of the browser. Any help?

Thanks!
Reply With Quote
  #5 (permalink)  
Old 09-10-2006, 10:54 PM
kbeeveer46's Avatar
kbeeveer46 kbeeveer46 is offline
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,579
Downloads: 62
Uploads: 6
Thanks: 255
Thanked 651 Times in 515 Posts
If your version of Pligg has an admin panel where you can configure pligg go to admin panel > configure pligg > location installed. Change the first module to the location where you installed Pligg. Change the second module if you installed pligg in a subdirectory.

If you don't have configure pligg in your admin panel then you will have to edit config.php and look for the location installed line. Make sure to upload it back to the server after editing.
__________________
I accept donations for my time helping users like you on the forum and IRC.

FREE and premium Pligg Web Hosting (NO ads, Includes MySQL, PHP, PHPMyAdmin, and Control Panel) - PM me for discounts on premium packages or if you would like a custom-made package. Paypal accepted.
Reply With Quote
Reply



Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
I'd like to hire someone to help install vendude Installation and Upgrade Help 3 03-10-2007 09:52 PM
Pligg IIS install (basics) ButtNutt Installation and Upgrade Help 0 07-15-2006 04:23 PM
Copies my /libs/dbconnect.php from another Pligg install since it doesnt come with 6. lexor Installation and Upgrade Help 0 05-19-2006 04:44 AM
Install / Smarty Error Beta 7 WillS Installation and Upgrade Help 1 05-07-2006 04:16 PM
Where do I set database? Install directions anywhere? deader Installation and Upgrade Help 7 01-17-2006 03:37 PM


LinkBacks Enabled by vBSEO 3.0.0