Page 1 of 1

Unable to browse WP site on VM

Posted: 5. Oct 2020, 17:09
by satimis
Hi all

Host OS - Ubuntu 20.04 desktop
VM OS - Ubuntu 20.04 desktop

I have WordPress sites created on VM sometimes ago. At time of their building the LAN Address of the VM was 192.168.0.101. The WP sites are on;
/var/www/html/site1
/var/www/html/site2
/var/www/html/site3
/var/www/html/site3
etc.

To browse the WP sites just on browser ran;
/192.168.0.101/site1
/192.168.0.101/site2
/192.168.0.101/site3
/192.168.0.101/site4
etc.

Now the router IP address has been changed to 192.168.1.1. I have changed the VM IP address to 192.168.1.101, replacing 0 with 1.

Websites can't be browsed on LAN. Visiting 192.168.1.101/site1 it always looks for 192.168.0.101/site1

Please advise how to fix the problem? Which file I have to edit? Thanks

Regards

Re: Unable to browse WP site on VM

Posted: 5. Oct 2020, 17:22
by scottgus1
I have anecdotally seen Linux OS's fail to completely respond to IP address changes. If you are using Bridged and your guest was working before, then it appears that your Virtualbox is still working, and you'd need to get the guest Linux OS to fully reset itself.

I don't know how to do that, though. Web-search how to change IP address range on Linux OS, maybe there will be a clue.

If you were not using Bridged, what were you using?

Re: Unable to browse WP site on VM

Posted: 6. Oct 2020, 06:46
by satimis
scottgus1 wrote:I have anecdotally seen Linux OS's fail to completely respond to IP address changes. If you are using Bridged and your guest was working before, then it appears that your Virtualbox is still working, and you'd need to get the guest Linux OS to fully reset itself.

I don't know how to do that, though. Web-search how to change IP address range on Linux OS, maybe there will be a clue.

If you were not using Bridged, what were you using?
Hi,

I'm running Bridged here. Also I have changed the IP address of the VM to 192.168.1.101. Ifconfig shows it correct.

But running;
/192.168.1.101/site1/wp-admin
OR
/192.168.1.101/site1/wp-login.php

taking prolonged time and finally popup "Time Out"

Regards