Support » Installing WordPress » Database setup not correct – multiple websites from one VM

  • I have 3 websites running on one VM, it was 2, then i moved one off to another hosting, then decided i preferred the original so started moving it back and bringing my third one over.

    I had made very few changes to the one that is currently confusing me, so decided to just point the DNS back to the original host and make the changes again, all seemed well and good until I needed to disable the 2FA and was looking at the wp-config.php and discovered that 2 of the websites were inadvertently pointing at the same database (wordpress) when I logged into the database to see what was going on, that database doesn’t even exist, only the one for the website that never moved and the one for the website I just migrated. What’s really strange is both websites are loading fine!

    I’ve checked the config files in /etc/apache2/sites-available/ and they are both pointing to the appropriate /var/www/ folder for the relevant website.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Do the two websites possibly use a caching plugin? If so, you may still see their cached pages in the frontend that do not require a database connection. Have a look at the .htaccess file, where you should be able to see references to it.

    And another thing: can you log in to both websites in the backend? If /wp-admin/ doesn’t even work, then the database is missing.

    You would now have to see for yourself where you have backups of the missing databases.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.