WordPress Instances with Multiple Databases
by awaismalik from LinuxQuestions.org on (#5MKCB)
I am migrating the website from old server to new server for which i only have command line access to both servers. The website consists of two languages so i copied both wordpress files wordpressLanguage1 and wordpressLanguage2 files to the new server and also exported two mysql databases as exportLanguage1.sql and exportLanguage2.sql. On the new server i installed apache2, mysql,mariadb,php and configured them. In /etc/apache2/sites-available/mywebsite file at place of ServerName and ServerAlias i have placed IP of my new server to test the website. In database wp_options i also changed the siteurl and home to IP of my new server. When i search with IP of my new server it open the website of Language1 on the right side corner when i select the Language2 the IP redirects me to the old server URL. I am sure both databases are loaded and also both wordpress files are copied.Configuration at /etc/apache2/sites-available/mywebsite files are also same. For both languages website files(.conf) i have defined the same SeverName and ServerAlias 'IP' address of new server. Can any one tell me what i am missing or doing wrong? Thanks