![]() |
|
|
#1 |
|
Fishfaced Nincompoop
Join Date: Feb 2006
Location: Sweden
Posts: 7,908 (2.99/day)
Thanks: 1,076
Thanked 1,449 Times in 1,155 Posts
|
Web server and home network
Hey all.
So I'm thinking about setting up a web server for a school project. Also as a personal project, I'd thought it would be fun to see how it works. What I'm most curious in is security actually. It will be behind a router, but do you think it's necessary to have it behind a dedicated firewall as well? The server might also double as a file server for the home network, is that a bad idea? Could you put the web server on a virtual machine maybe? Thanks for looking!
__________________
Typemachine: Acer Aspire One D250 | Atom N280 1.6 Ghz | 1GB DDR2 | 160GB SATA | 10.1' 1024 x 600 | Lubuntu 12.10 Oldbox: HP D530 | Pentium 4 2.8 Ghz | 1GB DDR | 40GB | Windows XP "The 'gentle biker' look is overdone. I'm going for 'psycho hillbilly.' " |
|
|
|
|
|
#2 |
|
Semi-Retired Folder
Join Date: Nov 2005
Location: Indiana
Posts: 17,767 (6.48/day)
Thanks: 780
Thanked 5,121 Times in 3,710 Posts
|
Security shouldn't be an issue. You only have to open port 80 to the outside world. Just use strong passwords for everything, including the Windows accounts, and you should be fine.
__________________
Rig1: System Specs. Rig2: A8-5600K@4.4GHz / AsRock FM2A75 Pro4 / 8GB Corsair DDR3-1600 9-9-9-24 / HD7560D / Samsung DVD-Burner / 1.5TB WD Green + 3x3TB WD RED in RAID5 Rig3: Athlon X2 4200+ / M4A79 Deluxe / 4GB G.Skill Pi DDR2-800 4-4-4-12 / GT430 / Sony DVD-Burner / 500GB WD Rig4: Phenom II x6 1605T @ 3.6GHz / Asus M5A99X Evo / 8GB PNY DDR3-1600 9-9-9 / GTX470 & GTX470 / Samsung DVD-Burner / 1.5TB Seagate |
|
|
|
| The Following User Says Thank You to newtekie1 For This Useful Post: |
|
|
#3 |
![]() Join Date: Aug 2007
Location: Geneva, FL, USA
Posts: 3,010 (1.42/day)
Thanks: 567
Thanked 606 Times in 487 Posts
|
What's the goal for your project? (Database interaction, etc)
|
|
|
|
|
|
#4 |
|
Fishfaced Nincompoop
Join Date: Feb 2006
Location: Sweden
Posts: 7,908 (2.99/day)
Thanks: 1,076
Thanked 1,449 Times in 1,155 Posts
|
The "project" is just to make a web page. Me, I just wanted to build a web server for myself.
__________________
Typemachine: Acer Aspire One D250 | Atom N280 1.6 Ghz | 1GB DDR2 | 160GB SATA | 10.1' 1024 x 600 | Lubuntu 12.10 Oldbox: HP D530 | Pentium 4 2.8 Ghz | 1GB DDR | 40GB | Windows XP "The 'gentle biker' look is overdone. I'm going for 'psycho hillbilly.' " |
|
|
|
|
|
#5 |
|
Hardcore Monkey Moderator
Join Date: Feb 2007
Location: Cheeseland (Wisconsin, USA)
Posts: 12,133 (5.27/day)
Thanks: 591
Thanked 5,494 Times in 2,938 Posts
|
If you just want to make a simple server that has basic security then only opening port 80 and having strong passwords will do.
If you want to learn all the nuts and bolts of internet security then you will want to implement all kinds of services and learn how to make them as secure as possible.
__________________
Cloud (noun, singular): A dynamic arrangement of multiple potential single points of failure, with a user at one end and their data at the other. Get more tech news on a wide variety of topics at NextPowerUp
|
|
|
|
| The Following User Says Thank You to Kreij For This Useful Post: |
|
|
#6 | |
![]() Join Date: Aug 2007
Location: Geneva, FL, USA
Posts: 3,010 (1.42/day)
Thanks: 567
Thanked 606 Times in 487 Posts
|
Quote:
If this is on the box in your specs, then the included IIS will work well. 7.5 (and 7.0) is much better than the previous versions. Otherwise, installing httpd (Apache) isn't hard at all and there isn't much to configure as long as you serve out of the default htdocs directory. (I suppose that is also true for IIS, serve out of the wwwroot directory to start with) |
|
|
|
|
| The Following User Says Thank You to Jizzler For This Useful Post: |
|
|
#7 | |
|
Fishfaced Nincompoop
Join Date: Feb 2006
Location: Sweden
Posts: 7,908 (2.99/day)
Thanks: 1,076
Thanked 1,449 Times in 1,155 Posts
|
Quote:
__________________
Typemachine: Acer Aspire One D250 | Atom N280 1.6 Ghz | 1GB DDR2 | 160GB SATA | 10.1' 1024 x 600 | Lubuntu 12.10 Oldbox: HP D530 | Pentium 4 2.8 Ghz | 1GB DDR | 40GB | Windows XP "The 'gentle biker' look is overdone. I'm going for 'psycho hillbilly.' " |
|
|
|
|
|
|
#8 |
![]() Join Date: Aug 2007
Location: Geneva, FL, USA
Posts: 3,010 (1.42/day)
Thanks: 567
Thanked 606 Times in 487 Posts
|
I've been using Ubuntu Server lately, as the repos seem to be updated regularly. Near-latest versions of PHP, MySQL, and other libraries I use for web dev.
Since that won't matter much to you, at least initially, my old favorite CentOS is a good choice too. Unless W1zz has changed it, it's what TPU runs on. |
|
|
|
|
|
#9 |
![]() Join Date: May 2011
Location: US of A
Posts: 1,346 (1.81/day)
Thanks: 352
Thanked 250 Times in 220 Posts
|
Don't put the server on a VM. The number one bottleneck in web servers to date is data I/O (hard disk input / output). The VM setup would only slow it down, UNLESS it's a VM that is running on top of a transparent layer like HyperVM, and it's utilizing all of the major resources. If this is just for testing purposes, then by all means go for a simple vmware workstation setup or whatever.
A simple apache/nginx/lighttpd setup will run nicely even on fairly old hardware, as long as you don't have heavy database usage going on. Lots of database calls are what usually eat up disk IO. That and poorly written scripts that call db's and do stupid things. CentOS and ubuntu server are very simple to setup, and installing a LAMP setup is as easy as typing one line into the CLI (command line interface). Ubuntu would be the easiest as it has a nice prepackaged LAMP setup. All you need to do is open up port 80 on the router and route it to port 80 (or whatever port you choose to run apache on the server itself). 80 is the default http port, but you can change it to whatever you'd like as long as you properly forward it to port 80 on the router. Oh and port 443 is default for https (ssl encrypted apache, etc. too bad SSL is no longer really secure lol) Many home ISP's will block port 80, and even 8080 sometimes to prevent people from running home servers. There are ways to circumvent this, but for you I think this is just a simple project - so just change the port if they block port 80 on their end. If you want more detailed help feel free to ask. I run a web hosting business for a living. Good luck! Here's a quick LAMP setup guide for ubuntu 11.04. But you should be able to select LAMP upon installing ubuntu 11.04 server. However if you install the regular version on a machine and want the desktop GUI follow this guide: http://www.multimediaboom.com/how-to...-0410-1010-04/ LAMP = Linux Apache Mysql PHP setup.
__________________
if you build it, they will hate Last edited by LordJummy; Oct 8, 2011 at 09:30 PM. |
|
|
|
| The Following User Says Thank You to LordJummy For This Useful Post: |
|
|
#10 |
|
Semi-Retired Folder
Join Date: Nov 2005
Location: Indiana
Posts: 17,767 (6.48/day)
Thanks: 780
Thanked 5,121 Times in 3,710 Posts
|
The number one bottleneck in home web servers is usually the internet connection's upload speed.
__________________
Rig1: System Specs. Rig2: A8-5600K@4.4GHz / AsRock FM2A75 Pro4 / 8GB Corsair DDR3-1600 9-9-9-24 / HD7560D / Samsung DVD-Burner / 1.5TB WD Green + 3x3TB WD RED in RAID5 Rig3: Athlon X2 4200+ / M4A79 Deluxe / 4GB G.Skill Pi DDR2-800 4-4-4-12 / GT430 / Sony DVD-Burner / 500GB WD Rig4: Phenom II x6 1605T @ 3.6GHz / Asus M5A99X Evo / 8GB PNY DDR3-1600 9-9-9 / GTX470 & GTX470 / Samsung DVD-Burner / 1.5TB Seagate |
|
|
|
| The Following User Says Thank You to newtekie1 For This Useful Post: |
|
|
#11 | |
![]() Join Date: May 2011
Location: US of A
Posts: 1,346 (1.81/day)
Thanks: 352
Thanked 250 Times in 220 Posts
|
Quote:
More to the point: even taking into account home servers I would still be right. The number one bottleneck would still be disk I/O, if you want to play it like that smarty pants
__________________
if you build it, they will hate |
|
|
|
|
|
|
#12 |
![]() Join Date: Aug 2007
Location: Geneva, FL, USA
Posts: 3,010 (1.42/day)
Thanks: 567
Thanked 606 Times in 487 Posts
|
Yeah, because Frick is going to from some simple HTML pages that him and a handful of other people will see to a heavy million+ node JBoss server overnight. There's being right and there's being realistic
![]() Let's get that web root into RAM disk NOW!
|
|
|
|
| The Following User Says Thank You to Jizzler For This Useful Post: |
|
|
#13 | |
|
Semi-Retired Folder
Join Date: Nov 2005
Location: Indiana
Posts: 17,767 (6.48/day)
Thanks: 780
Thanked 5,121 Times in 3,710 Posts
|
Quote:
And no, disk I/O is not the number one bottleneck in home servers. The disk I/O even off a shit disk system is going to way outpace most home connections. You are talking the majority of people having under 5Mb/s. A USB flash drive can saturate that, and the ~50MB/s that a VMWare virtual machine is capable of will definitely saturate that. So no, disk I/O is not likely going to be a bottleneck in a home server.
__________________
Rig1: System Specs. Rig2: A8-5600K@4.4GHz / AsRock FM2A75 Pro4 / 8GB Corsair DDR3-1600 9-9-9-24 / HD7560D / Samsung DVD-Burner / 1.5TB WD Green + 3x3TB WD RED in RAID5 Rig3: Athlon X2 4200+ / M4A79 Deluxe / 4GB G.Skill Pi DDR2-800 4-4-4-12 / GT430 / Sony DVD-Burner / 500GB WD Rig4: Phenom II x6 1605T @ 3.6GHz / Asus M5A99X Evo / 8GB PNY DDR3-1600 9-9-9 / GTX470 & GTX470 / Samsung DVD-Burner / 1.5TB Seagate Last edited by newtekie1; Oct 9, 2011 at 06:17 AM. |
|
|
|
|
| The Following User Says Thank You to newtekie1 For This Useful Post: |
|
|
#14 | |
![]() Join Date: May 2011
Location: US of A
Posts: 1,346 (1.81/day)
Thanks: 352
Thanked 250 Times in 220 Posts
|
Quote:
If you had read what I wrote, you would have known I said "taking into account all home servers". I understand your need to be right, but you're trying to refute something I didn't even say. Read it again.
__________________
if you build it, they will hate |
|
|
|
|
|
|
#15 | |
|
Semi-Retired Folder
Join Date: Nov 2005
Location: Indiana
Posts: 17,767 (6.48/day)
Thanks: 780
Thanked 5,121 Times in 3,710 Posts
|
Quote:
We are talking about home servers here, not servers world wide. If you have something to contribute relating to home servers, then do so, otherwise stop derailing the thread. Oh, and even considering all web servers world wide, disk I/O is not the number one bottleneck. The internet connection's upload speed still is. The large majority of websites and webservers hosting those sites, are so small that disk I/O never becomes an issues. Even on a basic virtualized setup, the disk I/O can maintain 50Mb/s, which unless the server is on a huge pipe, and most aren't on that huge of a pipe, the connection will be the issue. So no, you are wrong even considering all servers world wide. ![]() Now, enough derailing the thread with off topic crap, and back to the topic of Home servers.
__________________
Rig1: System Specs. Rig2: A8-5600K@4.4GHz / AsRock FM2A75 Pro4 / 8GB Corsair DDR3-1600 9-9-9-24 / HD7560D / Samsung DVD-Burner / 1.5TB WD Green + 3x3TB WD RED in RAID5 Rig3: Athlon X2 4200+ / M4A79 Deluxe / 4GB G.Skill Pi DDR2-800 4-4-4-12 / GT430 / Sony DVD-Burner / 500GB WD Rig4: Phenom II x6 1605T @ 3.6GHz / Asus M5A99X Evo / 8GB PNY DDR3-1600 9-9-9 / GTX470 & GTX470 / Samsung DVD-Burner / 1.5TB Seagate |
|
|
|
|
| The Following User Says Thank You to newtekie1 For This Useful Post: |
|
|
#16 | |
![]() Join Date: May 2011
Location: US of A
Posts: 1,346 (1.81/day)
Thanks: 352
Thanked 250 Times in 220 Posts
|
Quote:
Just a side note though: If a rinky dink data center's bandwidth is insufficient to satisfy the needs of a single server, then the problem doesn't lie with the server - it's with the actual uplinks. So your claim that bandwidth is the number one bottle neck in servers is completely incorrect. The bandwidth limitation is not even related to the server. That's just poor infrastructure. It's not the server's fault that you can't provide enough bandwidth to it. Consider yourself educated. I think I actually addressed the OP's questions well. To the OP: I still stand by if you need any more information on the subject. I'd be glad to help. I would be more than happy to share my knowledge of the web hosting industry in general also.
__________________
if you build it, they will hate |
|
|
|
|
|
|
#17 | |
|
Semi-Retired Folder
Join Date: Nov 2005
Location: Indiana
Posts: 17,767 (6.48/day)
Thanks: 780
Thanked 5,121 Times in 3,710 Posts
|
Quote:
And if you are seriously going to say that when considering a web server you aren't going to take into consideration the web connection, then I wouldn't take your advice on a dare... I'm done arguing with you.
__________________
Rig1: System Specs. Rig2: A8-5600K@4.4GHz / AsRock FM2A75 Pro4 / 8GB Corsair DDR3-1600 9-9-9-24 / HD7560D / Samsung DVD-Burner / 1.5TB WD Green + 3x3TB WD RED in RAID5 Rig3: Athlon X2 4200+ / M4A79 Deluxe / 4GB G.Skill Pi DDR2-800 4-4-4-12 / GT430 / Sony DVD-Burner / 500GB WD Rig4: Phenom II x6 1605T @ 3.6GHz / Asus M5A99X Evo / 8GB PNY DDR3-1600 9-9-9 / GTX470 & GTX470 / Samsung DVD-Burner / 1.5TB Seagate Last edited by newtekie1; Oct 9, 2011 at 07:24 PM. |
|
|
|
|
|
|
#18 |
|
Linux Advocate
Join Date: Nov 2006
Posts: 10,226 (4.29/day)
Thanks: 1,208
Thanked 2,775 Times in 1,793 Posts
|
thread is off topic. however, i think the information provided in some of the posts is relevant and useful. carry on.
|
|
|
|
|
|
#19 | |
|
Fishfaced Nincompoop
Join Date: Feb 2006
Location: Sweden
Posts: 7,908 (2.99/day)
Thanks: 1,076
Thanked 1,449 Times in 1,155 Posts
|
Quote:
I haven't done anything with this yet as I need some hardware (and moneyday is a week off), but it will happen. Thank you for your input.
__________________
Typemachine: Acer Aspire One D250 | Atom N280 1.6 Ghz | 1GB DDR2 | 160GB SATA | 10.1' 1024 x 600 | Lubuntu 12.10 Oldbox: HP D530 | Pentium 4 2.8 Ghz | 1GB DDR | 40GB | Windows XP "The 'gentle biker' look is overdone. I'm going for 'psycho hillbilly.' " |
|
|
|
|
|
|
#20 | |
![]() Join Date: May 2011
Location: US of A
Posts: 1,346 (1.81/day)
Thanks: 352
Thanked 250 Times in 220 Posts
|
Quote:
You can also do trades sometimes. As I said before, I traded my razer naga for a really nice core2duo htpc fully loaded a couple weeks ago. Best trade evar.
__________________
if you build it, they will hate |
|
|
|
|
|
|
#21 |
![]() Join Date: Mar 2009
Location: SCOTLAND!
Posts: 919 (0.60/day)
Thanks: 91
Thanked 137 Times in 106 Posts
|
try Aprelium - Abyss Web Server http://www.aprelium.com/abyssws/ they do a free personal edition that i have used for years to share files via HTTP and its very simple to set up and use. its also tiny i think the whole program is only 2MB so any computer should run it no bother.
__________________
machine XI Phenom II 965 Black @3.8ghz, 8Gb XMS3 1600, Asus M4A88TD-M EVO/USB3, HD5970, 128gb sandisk SSD, mcubed t-balancer HP EliteBook 2530p SL9400 Core 2 Duo ULV @ 0.9v, 4Gb ddr2, 80Gb Intel X-18m G2, 64Gb express card SSD, Ubiquiti SR71-E 400mw wifi, 21mb HSPA+ ESXI Server Phenom II 1155T, MSI 890FXA-GD70, 12Gb ddr3, IBM M1015 sas, Dell sas 6i, 10 drive 8tb UNRAID array. Old Builds :watercooled matx rig|Water Cooled ITX rig |EeePC 701 7" netbook | ITX Gaming raid build |
|
|
|
| The Following User Says Thank You to Geofrancis For This Useful Post: |
|
|
#22 |
![]() Join Date: Feb 2006
Posts: 4,058 (1.53/day)
Thanks: 2,249
Thanked 542 Times in 443 Posts
|
with the machine specs linux is the best route to go, ubuntu server is a good choice as is centos. We are exclusively centos here at work for our linux servers. If you're just wanting this to play around with html and see how it looks in live then doing everything on the local network will be fine. If not seriously take a look at your upload speed. In AZ the fastest home net connections have 5Mbps uploads (with 50Mbps down) the cheapies have 384Kbps upload. If you're embeding flash or anything super image hefty it could get really annoying for both you and your teacher (assuming you link the teacher to your project).
|
|
|
|
| The Following User Says Thank You to yogurt_21 For This Useful Post: |
|
|
#23 | |
|
Fishfaced Nincompoop
Join Date: Feb 2006
Location: Sweden
Posts: 7,908 (2.99/day)
Thanks: 1,076
Thanked 1,449 Times in 1,155 Posts
|
Quote:
![]() UPDATE on the project: Well things is not going very well. I really really really need a camera for it, as it will mainly be about electronic projects and stuff like that. Also I'm broke and will be broke for while longer so I will probably put this on ice for a month or two. Unless something happens. And I could really use a PSU and a HDD for the project. I have decided that I will use a Linux-something server, I'm not sure which one though, will look around a bit. I really appreciete the help guys, I really do.
__________________
Typemachine: Acer Aspire One D250 | Atom N280 1.6 Ghz | 1GB DDR2 | 160GB SATA | 10.1' 1024 x 600 | Lubuntu 12.10 Oldbox: HP D530 | Pentium 4 2.8 Ghz | 1GB DDR | 40GB | Windows XP "The 'gentle biker' look is overdone. I'm going for 'psycho hillbilly.' " |
|
|
|
|
| The Following User Says Thank You to Frick For This Useful Post: |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| DNS and hiding a web server | s. | Networking & Security | 24 | Jun 8, 2011 08:52 PM |
| home based web server | Sil3ntSnip3a | General Hardware | 5 | Oct 15, 2010 05:50 AM |
| Verbatim Unveils MyMedia Server, Home Network Storage Solution | btarunr | News | 0 | Jan 9, 2010 12:18 PM |
| Home Network and IP Issues | maverick2013 | Networking & Security | 10 | Nov 4, 2009 09:55 PM |
| Windows Home server and VT6421 | freaksavior | General Hardware | 13 | Apr 22, 2009 11:08 PM |