Page 1 of 1

XP guest with Shop(ware) & XAMPP

Posted: 5. Jun 2012, 16:41
by JuRickers
Hello

this is my 1st post. Well, I got a problem:

I installed with XAMPP locally my 'online shop software' by the the manufacturer Shopware in XP Sp3.

My host is Win7 32bit. I configured in VB the network as bridged: 192.168.56.1 I think with the sub: 255.255.255.0 and GW:192.168.178.1 & DNS the same. I think these settings were made by the VB installer but am not sure if I altered something there in the TCPIP settings on my host under the network config.


However:

I CAN ping my guest. I even can browse from my host (opera) the config page of the XAMPP running in my guest. I have to enter in my browser: 192.168.178.32/xampp
Well, we see here that the guest XP chose by DHCP the adress matching my LAN (router is 192.168.178.1).

But I can NOT browse the index/main page of my demo shop running in the guest. It should appear when I enter only the guest's IP: 192.168.178.32


All I get is an empty page and info on an unreachable page.

'So, does someone have an idea where I made something wrong or where I forgot sth or what I can do?


it is really important for me, so my family can test the demo shop that is running in the XP guest.

PS:
LINK to the XAMPP/Shopware setup: wiki.shopware.de/Downloads_cat_448.html

Thank you alot!

Re: XP guest with Shop(ware) & XAMPP

Posted: 5. Jun 2012, 16:56
by Perryg
Is this a typo?
192.168.56.1 I think with the sub: 255.255.255.0 and GW:192.168.178.1
Also the address scheme you are using is the same as the VirtualBox host-only which would cause an issue.

Re: XP guest with Shop(ware) & XAMPP

Posted: 5. Jun 2012, 17:13
by JuRickers
Honestly, it is not a typo and well I receive an error message. However, as I said I can reach GuestIP/xampp and ping it... but not the mainpage of the shop at GuestIP.


Mh, but since I am a beginner, could you please tell me the settings the TCPI/IP bridged adapter in the host should have?





Or, do I get it right that I should make sure that the bridged adapter is in my LAN adress group?
I mean, does VirtualBox use the 192.168.56.1 by default but I have to change this in VirtualBox ' options?
thank you

Re: XP guest with Shop(ware) & XAMPP

Posted: 5. Jun 2012, 17:25
by Perryg
Bridged mode should use the address of your LAN router.

192.168.178.1 = gateway
255.255.255.0 = subnet mask.
DNS = same as gateway usually
but your address is not in the same range. It says 192.168.56.* when it should say 192.168.178.*

Re: XP guest with Shop(ware) & XAMPP

Posted: 5. Jun 2012, 17:32
by JuRickers
Ok, Perry


I went now into VirtualBox -> Global settings
and changed the 'Host-Only-adapter', since it is the only one there, into 192.168.178.50 and DNS:192.168.178.1 GW:192.168.178.1 and Sub:255.255.255.0.

I checked this in my control panel of my host Windows 7 and, voila, there I find now the same settings under TCP/IP 4.

What happens in the guest then when started I do not know but there I have the vanilla settings that say, get everything by DHCP. Result is, my VM gets in my case the 192.168.178.32.

I assume, I could change this by alterings the settings in my guest OS WinXP by entering the manual settings like:
192.168.178.55 and DNS:192.168.178.1 GW:192.168.178.1


Is this the correct procedure?

Thank you

Re: XP guest with Shop(ware) & XAMPP

Posted: 5. Jun 2012, 17:38
by JuRickers
Well,

as before :( I can ping and reach XAMPP on 192.168.178.32/xampp but not the demo shop :((

All i get then is:

This webpage is not available
The connection to localhost was interrupted.

I edited hosts on my 'host Win7':
192.168.178.32 w w w.shopware.vm
192.168.178.32 qa.shopvm.de but to no avail.

Re: XP guest with Shop(ware) & XAMPP

Posted: 5. Jun 2012, 17:41
by Perryg
I went now into VirtualBox -> Global settings
and changed the 'Host-Only-adapter', since it is the only one there, into 192.168.178.50 and DNS:192.168.178.1 GW:192.168.178.1 and Sub:255.255.255.0.
That's not what I said to do. This will actually cause more issues as I indicated in the first reply.

Host-only is not bridged but another means to connect the guest to the host. Put this back like it was and just change the address of the guest to be in the same range as the host. This should have been done automatically if the guest was set to receive its address from DHCP.

Re: XP guest with Shop(ware) & XAMPP

Posted: 5. Jun 2012, 17:46
by JuRickers
I see but now I am in trouble since I think these settings were already wrong in the 1st place and my 1st post.

Do you happen to have the original settings for me so I can go back?

Re: XP guest with Shop(ware) & XAMPP

Posted: 5. Jun 2012, 17:54
by Perryg
See screen shots.
host-only-1.png
host-only-1.png (25.24 KiB) Viewed 3437 times
host-only-2.png
host-only-2.png (28.41 KiB) Viewed 3437 times

Re: XP guest with Shop(ware) & XAMPP

Posted: 5. Jun 2012, 18:14
by JuRickers
Perfect Perry!!

I wanted to illustrate my issue with screenis too but as a new forum user I am not allowed to do. I need one day of membership :)



So, let us go back to my main issue since it is not solved by these TCP/IP settings :(

Here I try to give you a link where some one has the same problem:
google / bing : “Reaching localhost from VMware / virtual machines on a Mac”

Anyhow since I do no have ifconfig I am still in trouble. But his link shows excactly my issue.

Re: XP guest with Shop(ware) & XAMPP

Posted: 5. Jun 2012, 18:36
by Perryg
First thing that you have to understand is every pc on metal or virtual has a localhost. So if that is what you are using on the host to access the guest it will never work. Use that IP address of the guest and see if it can access the web server.

Re: XP guest with Shop(ware) & XAMPP

Posted: 5. Jun 2012, 19:00
by JuRickers
Perry

I understand that and the thing is many people use development environments where they need to reach the guest localhost from the outside (e.g. the host).

I downloaded the Shopware Vmware image and started it in VirtualBox without any problems (\bow to Oracle) and I could then reach the guests localhost!

--> h t t p : / / wiki.shopware.de/Shopware-3.5-VMware-Image_detail_562.html

But this image is based on Debian and I need to learn stuff my self so I installed XAMPP not on Debian but in WinXP and then I could not reach the localhost in the XP guest anymore :(

May be that there is a something like aURL rewrite working or so 'in the VM / guest' or on my host but then the former 'Image version' should not work ?!?!

Re: XP guest with Shop(ware) & XAMPP

Posted: 5. Jun 2012, 22:29
by JuRickers
Ok,

I installed in a cloned XP guest another 'shop'. This time with Joomla 1.7 and Xampp again.
This guest is configured in VirtualBox again as 'bridged' and inside the guest I manually set XP's TCP'/IP to 192.168.178.33.

Guess what?

From my host I can without any hassle reach this dev.environment!
When entering 192.168.178.33 in my guest I reach automatically 192.168.178.33/xampp aka localhost/xampp in the guest.
When entering 192.168.178.33/joomla17/ in my guest I reach automatically 192.168.178.33/'Joomla Frontend' localhost/joomla17(frontend) in the guest.

So, I must conclude that in my previous case where I used a 'bundled version of Xampp/Shopware' from the manufacturer that there is something altered in it that hinders me to reach the 'demo shop' /' frontend from outside the virtual machine.

Uhm, and since I am a beginner I am thinking this is the point where I have to give in :(