Loading...
 
Skip to main content

Architecture / Installation


duplicate site db problems

I have two sites running on the same box. I have a problem in that both are pointing to the same database. I have no idea how this has happened but it must be set somewhere. Site 2 was originally copied from site 1.

Running the changedb install process just changes both sites as both sites db/local.php are affected by the install and both are referring to site2/db/local.php for their db information

Viv




Site 1 web Site 1 folder on server
Templates etc
Uses Site 2 db/local.php points to db2

Site 2 web Site 2 folder on server
Templates etc
Uses Site 2 db/local.php points to db2

So both sites are pointing to same db.

Changing site 1 through update db settings – just changes both site 1 and site 2 as the site2/db/local.php is changed