[Solved] Virtualbox WebServer

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[Solved] Virtualbox WebServer

Postby drichard58 » Oct 5th, '13, 01:42

Here's what I am trying to do - my father, brother, and I are doing some genealogy research. I have a ton of the information in Gramps (which I think is a great tool), but want to share the information with them so they can check it, confirm, etc. The HTML pages that you can export from Gramps are just what I wanted to share. So I thought I would set up a simple web server on a Virtualbox server.

I set up the Virtualbox. I installed Mageia. I set the network configuration in Virtualbox to a Bridge Connection. I set my DSL Router (AT&T Uverse) to allow that IP address to act as a Web Server, which gave it a public IP address (76.250.xx.xx). I did "urpmi task-lamp" to install a basic LAMP web server just in case I want to expand it a little more later on. From the virutalbox, I opened Firefox and typed 127.0.0.1 and got the familair "It Works!" screen.

I went to the host system and pinged the external IP address and got a response (not sure if that proves anything, since there is only one IP address for both the host and the virtual box). I tried pinging the internal address (192.168.1.xxx) and got a response (again, not sure that proves anything).
I went to the virtualbox and modified the shorewall file (through MCC) to allow the machine to be used as a Webserver. When I checked the shorewall config file, it showed the ports were opened. I went in and placed all my web files in the /var/www/html folder. If I open the index.html file in there, the web site opens like I want and navigates fine. However, I can't get to it from a browser on the Host machine or on the virtualbox.

On the virtualbox, I tried 127.0.0.1 and just get the "It Works". I go to the host machine and type in either the external IP address or the internal IP address and get a time-out on both. Trying those same two addresses on the virtualbox also gives me a timeout.

I am sure it is something simple I am missing, but I am baffled.

I would appreciate any help you guys can give.
Last edited by drichard58 on Oct 7th, '13, 00:21, edited 2 times in total.
drichard58
 
Posts: 42
Joined: May 26th, '12, 04:09

Re: Virtualbox WebServer

Postby pete910 » Oct 5th, '13, 02:15

Could be your firewall, see here

https://forums.mageia.org/en/viewtopic.php?f=8&t=4987

I presume the ports are open/enabled ion your router to allow external access


Pete
User avatar
pete910
 
Posts: 357
Joined: Jan 8th, '12, 18:53

Re: Virtualbox WebServer

Postby drichard58 » Oct 5th, '13, 23:27

Thanks, Pete910. That seems to have done the trick. Now, just so I know what I did ;) , can you confirm what I think the issue was?

I had to un-install shorewall-ipv6, then configure the firewall to allow the ports to open, and then it re-installed shorewall-ipv6. Does that sort of sum it up? Is this a standard operation, or is this an "un-documented feature"?
drichard58
 
Posts: 42
Joined: May 26th, '12, 04:09

Re: Virtualbox WebServer

Postby pete910 » Oct 6th, '13, 00:56

It's a bug, see here

https://bugs.mageia.org/show_bug.cgi?id=9329

Sent some of us nuts to start with, well, did me anyway :roll:

Glad its working, mark topic solved please if happy.


Pete
User avatar
pete910
 
Posts: 357
Joined: Jan 8th, '12, 18:53


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest