Website shows content of another site

Created:

2016-11-16 13:17:03 UTC

Modified:

2017-04-24 11:40:36 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Website shows content of another site

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

  1. A website shows content of another website

  2. Both websites are based on WordPress

Cause

The same database name is set in the wp-config.php files of the websites.

Resolution

  1. Check the database name in configuration files of the websites:

    # grep "define('DB_NAME" /var/www/vhosts/example.com/httpdocs/wp-config.php /var/www/vhosts/example.com/subdomain.example.com/wp-config.php
    /var/www/vhosts/example.com/httpdocs/wp-config.php:define('DB_NAME', 'n20111011_example');
    /var/www/vhosts/example.com/subdomain.example.com/wp-config.php:define('DB_NAME', 'n20111011_example');
  2. Set correct database names, database users, and database passwords in the wp-config.php files.

Have more questions? Submit a request
Please sign in to leave a comment.