Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I should test php websites on ie6,ie7,ie8 but i have ubuntu.

My computer have OS Ubuntu and virtual box OSE.

In ubuntu I run apache server that running my websites with special config.

How can I access from virual box OSE to apache server (that run on ubuntu) for testing my php websites?


share|improve this question
There's no specific reason to test a PHP site with any particular OS. The PHP is all handled by the web server and HTML rendered to the client. – Cry Havok Oct 20 '10 at 13:52
However, the PHP will at some point generate HTML/CSS, which then must be checked with multiple browsers (if one is careful). – CarlF Oct 20 '10 at 14:44
up vote 1 down vote accepted

The key question is - how is the network of your guest configured? The usual choices are NAT, Bridged or Host Only (though there's also Internal). Which you chose will make a difference to how you progress. The following assumes that you've got one physical interface.


Point the web browser at the LAN IP of the Apache server (if you're not sure what that is, check the output of ip addr show eth0)

Host Only

Point the web browser at the IP of the Host Only interface on the Host. If you're not sure what that is, check the output of ip addr show eth).

share|improve this answer
You're right, but perhaps it wasn't obvious to you that Yosef is running both VirtualBox and Apache on the same box. You might want to edit your answer to explain how to network to the VB host from a VB guest. – CarlF Oct 20 '10 at 14:48
I running apache on my OS UBUNTU and not on virtual box – Yosef Oct 21 '10 at 8:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.