[SOLVED] WordPress Instances with Multiple Databases
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
In database wp_options i also changed the siteurl and home to IP of my new server.
Changing the domain name of a wordpress instance isn't as simple as that, as the domain name appears in a lot of places inside the database rather than just the options.
There are wordpress plugins for doing domain name changes, you'll probably need to use one of them.
Changing the domain name of a wordpress instance isn't as simple as that, as the domain name appears in a lot of places inside the database rather than just the options.
There are wordpress plugins for doing domain name changes, you'll probably need to use one of them.
Unfortunately i dont have access to wp-admin so i can not use plugins. I am doing the backened migration of wordpress site.
Unfortunately i dont have access to wp-admin so i can not use plugins. I am doing the backened migration of wordpress site.
Agreed with TenTenths, and will question why (as the administrator who is doing server-migrations), you are tasked with doing something you don't have rights to do??
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.