Hi,
i duplicated my website on another server.
so now i have 2 website with the same design, same content and same CMS each one on a different server/hosting plan and with different domain name.
database name is the same for both websites
i changed the domain name of the new duplicated website in Ht.access file.
the problem is that whenever i log in to one of the websites and change some content, it changes on both websites!
both are linked to the same database and i cant find a way to change the path of the new database to the new website
anyone can help?
NB: i just copy pasted my website on another server. i did not install MODX again
-
☆ A M B ☆
- 24,524 Posts
Check the first part of the core/config/config.inc.php to make sure the database information is correct; pay especial attention to the database_server and to the database_dsn lines.
$database_type = 'mysql';
$database_server = 'localhost';
$database_user = 'root';
$database_password = 'root';
$database_connection_charset = 'utf8';
$dbase = 'revo226';
$table_prefix = 'modx_';
$database_dsn = 'mysql:host=localhost;dbname=revo226;charset=utf8';
Just to note the ht.access file has no relevance until you change the name to .htaccess and only then will it be recognized by the server.
Something does not sound right here. It sounds like both sites are still connecting to the same database.
It could be a hosting related issue, which would have me quite worried if it is the case.
I would create another database on your new package with a DIFFERENT name, import your data to it, and then alter your config file for that site to point to this one. You should then be able to change something on the new site without it changing the first site.
If that works, then make a change on your first web site, and see if the change to the db has happened on the 1st web sites db, and/or the 2nd one.
-
☆ A M B ☆
- 24,524 Posts
I've accidentally done this on two installations on the same server, but if this was two installations on two different servers the only way it would work is if the database_server is to an actual server URL and not localhost.