Creating a server?

Discussion about everything. New games, 3d math, development tips...
Post Reply
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Creating a server?

Post by MasterGod »

Hello,

I want to learn how does it work and I believe doing it myself would teach me the best.

I want to create a server and when I go to an address I set I get from this server a HTML page.
I thought about installing a virtual machine with Ubuntu server edition and start from there.
What say you?

Also, what else would I need to know/have to do what I want?

P.S
I'm trying to imitate the behavior of configuring a router.
I want my virtual machine to take the role of the router and my main machine as a client side machine and get info from the "router" - my virtual server machine.
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
Jake-GR
Posts: 41
Joined: Wed Jan 07, 2009 12:32 am
Location: Colorado
Contact:

Post by Jake-GR »

Are you wanting a local server, to setup an intranet?

Or you wanting something published over the internet? where its publicly accessible?
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

Hmm.. both if possible?..

But firstly local.
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

You can bridge your virtual network with your real one by using the "bridge connection" option in Windows, or you can set your VMWare / DOSbox / Virtual Server machine to use NAT and share your PC's IP address.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

bitplane wrote:You can bridge your virtual network with your real one by using the "bridge connection" option in Windows, or you can set your VMWare / DOSbox / Virtual Server machine to use NAT and share your PC's IP address.
Does that mean that someone else on the internet can enter URLS of my server and I could serve him with HTML pages?
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
twilight17
Posts: 362
Joined: Sun Dec 16, 2007 9:25 pm

Post by twilight17 »

MasterGod wrote:
bitplane wrote:You can bridge your virtual network with your real one by using the "bridge connection" option in Windows, or you can set your VMWare / DOSbox / Virtual Server machine to use NAT and share your PC's IP address.
Does that mean that someone else on the internet can enter URLS of my server and I could serve him with HTML pages?
Yes, but they will have to type in your IP address.
Post this userbar I made on other websites to show your support for Irrlicht!
Image
http://img147.imageshack.us/img147/1261 ... wernq4.png
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

Something like :
http://MyIpAddress.MyURL
?

Awesome! thanks.

P.S
Is there a way to shorten the complete url?
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
twilight17
Posts: 362
Joined: Sun Dec 16, 2007 9:25 pm

Post by twilight17 »

It will be like http://XXX.XXX.XXX/.

There are servcies such as DynDNS which will allow you to type in something like http://[NAME].kicks-ass.net/ (There are other domains besides kicks-ass.net available, too)
Post this userbar I made on other websites to show your support for Irrlicht!
Image
http://img147.imageshack.us/img147/1261 ... wernq4.png
nathanf534
Posts: 199
Joined: Tue Dec 09, 2008 2:55 am

Post by nathanf534 »

I downloaded apache for windows a while ago, and i could easily set up a server. All i have to do is drag some files to a ceratin folder, and they can be accessed from the internet, using http://xx.xxx.xxx.xx/file_name.ext
where x is my ip address.
while(signatureEmpty){cout<<wittyComment();}
reign16
Posts: 1
Joined: Tue Jan 13, 2009 10:57 am

Post by reign16 »

how to create an server?




___________________
Great thing to know about Busby SEO Test.
loki1985
Posts: 214
Joined: Thu Mar 31, 2005 2:36 pm

Post by loki1985 »

try http://www.apachefriends.org/en/, it is really simple to setup webserver with PHP and MySQL included.
Brainsaw
Posts: 1242
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Post by Brainsaw »

Yea ... xampp from apachefriends is great ... i got it running on several computers, easy to set up, easy to use.
Image
Dustbin::Games on the web: https://www.dustbin-online.de/
Dorth
Posts: 931
Joined: Sat May 26, 2007 11:03 pm

Post by Dorth »

Sami http server from Karjasoft is a small unknown jewel for this too, as long as your needs are smalls.
dejai
Posts: 522
Joined: Sat Apr 21, 2007 9:00 am

Post by dejai »

If you want to set up a server on Ubuntu Server you will first have to install apache, mysql and php. Then you will have to create your index.html file in /var/www/ . Then you need to assign a static internal ip to your server and then you will have to determine whether you have a static or dynamic external ip. Its most likely the latter. If so you will need to sign up at dyndns or no-ip.com and then link that to your dynamic ip which it will track. There are a number of security issues with hosting your own server that you will have to take into account, patching for websites is not something you can delay especially if its connected to your local network! There are other things you will have to look into such as firewalls etc. :P Hopes this helps. I run linux btw.
Programming Blog: http://www.uberwolf.com
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

dejai wrote:If you want to set up a server on Ubuntu Server you will first have to install apache, mysql and php. Then you will have to create your index.html file in /var/www/ . Then you need to assign a static internal ip to your server and then you will have to determine whether you have a static or dynamic external ip. Its most likely the latter. If so you will need to sign up at dyndns or no-ip.com and then link that to your dynamic ip which it will track. There are a number of security issues with hosting your own server that you will have to take into account, patching for websites is not something you can delay especially if its connected to your local network! There are other things you will have to look into such as firewalls etc. :P Hopes this helps. I run linux btw.
Thanks, it does help.

I also read that Ubuntu 8.10 Server edition comes with all this built-in pre-configured - Is it like it sounds, could it be that easy?
Did you use/tried Ubuntu Server edition before?

Also what problems should I expect if I'm doing all of this on a virtual machine?
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
Post Reply