logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: White Pages for my enabled site and localhost
Author
MeloWise



Joined: 06 Jan 2015
Posts: 3
Location: USA, CA

PostPosted: Wed 07 Jan '15 5:23    Post subject: White Pages for my enabled site and localhost Reply with quote

I'm using Oracle's VirtualBox
My network on the virtual box is set to Bridged Adapter

apache/2.4.7
php 5.5.9
Linux/Ubuntu 14.04.1 LTS
No errors in my apache2 error.log file.

First time creating a server on a virtual box. I am not confident i understand how my computer browser access the virtual box server i created. Once i understand that i could fix my issue. Which is, I can't finding my enabled site or localhost via my browser on my computer. All i get is a white page for both. I don't even see the it works page.

I am following this book and got stuck on chapter 1: Understanding and Setting Up Our Development Environment.
link to book ---
http://www.academia.edu/8767411/Magento_PHP_Developers_Guide

I have installed Oracle's VirtualBox, mounted Ubuntu, installed apache2 with $ sudo apt-get install apache2 -y. At this point everyone says, now go to your ip and you will see "It Works". Which i do not see. I see a white page with nothing on it.

I then looked to see if the localhost /var/www/html/index.html even exists. Which is does, i opened the file and i can see the line "It Works!".

My hosts file on my computer has ../driver/etc/hosts

127.0.0.1 localhost
192.168.56.1 magento.localhost.com

My hosts file on my Virtual box /etc/hosts

127.0.0.1 localhost
127.0.1.1 unbuntu
192.168.56.1 magento.localhost.com

Thank you for the help.
Back to top
Jan-E



Joined: 09 Mar 2012
Posts: 1266
Location: Amsterdam, NL, EU

PostPosted: Wed 07 Jan '15 13:08    Post subject: Reply with quote

192.168.56.1 works the other way around. You can see a webserver on the Virtualbox host from the Virtualbox guest. So your Apache must be on the host, not on the Ubuntu guest.
Back to top
MeloWise



Joined: 06 Jan 2015
Posts: 3
Location: USA, CA

PostPosted: Fri 09 Jan '15 4:18    Post subject: Reply with quote

I am pretty sure i have apache2 on the host and not the guest. I have double checked with https://help.ubuntu.com/community/ApacheMySQLPHP that my Ubuntu and apache2 setup was correct.

Still not able to see the it works page by going to localhost on my computer.
Back to top
MeloWise



Joined: 06 Jan 2015
Posts: 3
Location: USA, CA

PostPosted: Fri 09 Jan '15 4:57    Post subject: Reply with quote

Oh man thank you so much for the terminology you used. I had no idea what you meant by host and guest. I thought the VM was host and my ubuntu login was guest. After doing research about host and guest i now understand.

My windows 7 is the host, My VM Ubuntu is the Guest where my LAMP set up is. Once i figured that out, i looked at my network settings in my VM. I had to set it to Host-only adapter. Once i did that i saw my "VirtualBox Host-Only Ethernet Adapter". The same thing i saw on my host, when i typed "ipconfig".

Thank you again.
Back to top


Reply to topic   Topic: White Pages for my enabled site and localhost View previous topic :: View next topic
Post new topic   Forum Index -> Apache