Test Symfony2 GUI Apps in Windows7 with IE8 and IE9 The Right Way!

Ever wanted to browse your symfony2 apps from the point of view of those old stiff corporates that don’t know how to install better programs?
Fasten your seat belts!

Update: The right way ended up being https://github.com/xdissent/ievms (thanks @helios_ag)

Go first and download the legal images from this link: http://www.microsoft.com/en-us/download/details.aspx?id=11575
To aid you in your selection just download all 3 by 3 because i am sure you will have corruption problems. If the exe fails when you run it on your ubuntu just remove the files and download the again and again until you get them to work. Don’t be discouraged just try it and defeat it.

Once you grab your images and run the exe for each of the IE7, IE8, IE9 that you want to install (shame on you if IE6), you should get two files for each set, namely a Win7_IE8.vmc and a Win7_IE8.vhd for the IE8 version for instance. I will assume you have installed the latest virtualbox software from the ubuntu software center in your ubuntu. Run that and create a box and init the box with your already existent disk image, yes the vhd file.

After your box is all set and running you would ask yourself how to see my symfony2 app from the virtual box guest browser (yes this is the windows 7 with IE8 or IE9, etc). First follow and make sure the pinging works between the guest browsing the app and the host serving the app through apache or other.
Troubleshot tips, pinging from guest box to the host and from host to guest box:

// from guest windows box
ping 192.168.1.34 // IP address of the ubuntu host
// from ubuntu box
ping 192.168.1.36 // IP address of the virtual box

Step1: Edit your hosts on your windows box to include an entry pointing to your Ubuntu’s IP address (mine is 192.168.1.34) the one running apache and serving the symfony2 app:

// 127.0.0.1   localhost
129.168.1.34   myapp.local

Step2: Set your virtualbox network settings of the windows guest to Bridge and set it to allow on the select box to ALL VMS and what not.
Step3: Drop your defense iptables to allow for the guest to access pages served by the host:

// this works:
~ sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT
// thanks to @helios_ag who recommended these:
~ ufw allow http
~ ufw allow 80

Then open your browser on your windows guest virtual box and type:

http://myapp.local/app_dev.php

And of course you will get the one line warning. But from here on you know what to do if you are a symfony2 guy.
If you get errors make sure you troubleshoot and drop your firewalls allowing for the access with iptable settings as above.

I hope this has helped you. I thank God for having such good friends in the community.
Also I make sure to mention that all of this is undeserved because I cannot repay God’s grace.
Lastly, if you would like to see me at SymfonyLive in San Francisco and would like to contribute towards my air ticket 1800$ ($100 already raised) please follow this link: http://bit.ly/9xbyzM. The flight is very expensive but I am so eager to go and thanks for all that are already supporting me, we will have so much learning there. Looking forward to meet the community you!

One thought on “Test Symfony2 GUI Apps in Windows7 with IE8 and IE9 The Right Way!

Leave a Reply

Your email address will not be published. Required fields are marked *