Results 1 to 5 of 5

Thread: Install Help: re-mapping database

  1. #1
    New Pligger ifmanis5's Avatar
    Joined
    Aug 2006
    Posts
    12

    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

  2. #2
    Pligg Developer/Admin kbeeveer46's Avatar
    Joined
    Jun 2006
    Posts
    3,215
    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.

  3. #3
    New Pligger ifmanis5's Avatar
    Joined
    Aug 2006
    Posts
    12

    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!

  4. #4
    New Pligger ifmanis5's Avatar
    Joined
    Aug 2006
    Posts
    12

    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!

  5. #5
    Pligg Developer/Admin kbeeveer46's Avatar
    Joined
    Jun 2006
    Posts
    3,215
    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.

Similar Threads

  1. Transfer database to new install
    By oobie11 in forum Questions & Comments
    Replies: 1
    Last Post: 06-15-2009, 08:40 AM
  2. database during install
    By phalcon in forum Questions & Comments
    Replies: 2
    Last Post: 07-24-2007, 07:17 AM
  3. Starting Over with New install/Old Database
    By nickaster in forum Questions & Comments
    Replies: 11
    Last Post: 03-05-2007, 06:22 PM
  4. Old database on fresh install
    By noyp in forum Questions & Comments
    Replies: 4
    Last Post: 03-05-2007, 11:21 AM
  5. URL forwarding - Mapping issues
    By search in forum Questions & Comments
    Replies: 1
    Last Post: 11-14-2006, 08:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •