View Full Version : Hosting your own web server


d_kendal
02-26-2003, 11:45 AM
Right now I'm working on a couple websites (for myself and a few others), so I've been looking around a lot for web hosts. there's tons of hosts out there, but I keep finding that almost all of them are missing a feature I want/need, are too expensive, etc etc. Eventually, I came up with the idea that maybe I could just host my own server, so I started searching for info. it turns out that it's not going to be as hard as I thought it might to set one up for myself, all that's really needed for a server is:
1. A computer, any kind will do (Linux/Unix, Mac, Windows, as long as they've got the necessary hosting software, like Apache, IIS etc.) it doesn't need to be a very expensive computer, all that's needed are the basics (CPU/Motherboard, Ram, network card, CDrom, Hard drive)
2. a High speed connection like Cable or DSL, but you're going to need a static IP address, and a lot of bandwidth.
3. a Domain name pointing to your IP address.
once you have all these basics, then you need to get into all the configuration, like installing support for things like PHP, MySQL, anything like that which you're going to be needing for your sites. for operating system, I'm going to be using Linux (Mandrake 9.0) since I've found it extremely stable, plus the unix family is the native OS of Apache which is used by the majority of hosts out on the net right now. the one problem with using Linux or equivilent is it can be a pretty big pain to configure if you don't know a whole lot about it, since you will at some point have to use command line, there's not a whole lot of "wizards" like all the windows and mac folks are used to (although it is getting better)
This worked out well for timing for me, since I want get the experience of rebuilding a computer anyway, and I just found out that my dad's got an old 486 which he's let me gut and salvage the case, I also realized that I can get all the parts I'm going to need for around $250 cdn.
has anybody else around here ever done anything like this?
I'll keep you all updated on how this goes..

- David :)

Doug Nelson
02-26-2003, 12:19 PM
In a word: don't. Unless the experience and knowledge you gain is more important than the content of any of the sites. The fastest home connection would never be sufficient for a popular site, and the security risks could actually endanger the computer you use and any other networked computers.

A safer option is leasing a dedicated non-managed server. You'd still do all maintenance and administering, only from a professional location.

But, if hosting is the end, and the websites hosted merely the means, I know several people that do exactly what you've described, and enjoy it.

jrolinc
02-26-2003, 01:04 PM
Doug is right...alot of work and for a commercial type site, you definitely would need the bandwidth to support.

On the other hand, the knowledge and expertise in learning how to do that is very helpful, (in my opinion, but then, I'm a geek when it comes to that stuff anyhow).

I've got my own Personal/Family website hosted at home. Running on some older Pentium II boxes. IIS and SQL Server are some other parts/apps I'm using. I've got DSL at home and being just about across the street from Pacbell, have close to T1 speeds there, (so even accessing photos isn't a problem).

Anyhow, I've also got a hardware firewall type box as well as a software firewall app in place.

It does make things easier when it comes to making changes, etc, but for anything that I would like to have a business on, I will most likely do the hosting elsewhere.

Getting the IP address and setting the correct pointers at my Domain name registration site (www.register.com) was pretty simple. And I have recently figured out how to use IIS and Host Header Names to use one IP address to point to multiple Domain Websites hosted by myself.

Anyhow, if I can help, I'll keep an eye out here. Feel free to ask away.

d_kendal
02-26-2003, 01:12 PM
hmm, sounds like this one's gonna take some more research! thanks for the advice Doug, I hadn't heard about the non managed dedicated server option, I never even look at the dedicated section of host sites since I automatically think of regular dedicated service which is way to costly for me. I do realize the fact that broadband simply isn't fast enough to handle a lot of traffic, but the sites I'm putting up are just personal (portfolio etc.) and family, so that shouldn't be too big a deal. Security is definitely my biggest worry, but I'm good about keeping everything updated and applying patches, and I'm thinking it might be a good idea to get a hardware firewall to get behing my router. a big part of doing this is just for experience, if any of my sites start getting too much traffic for my line to handle, then I'll just figure out where to go from there. I should mentioned this in my original post, if you're planning on creating a very big site which is going to be high traffic, then avoid going from home (unless of course you've got high speed servers and an OC3 connection in your home ;) )

- David :)

d_kendal
02-26-2003, 01:17 PM
Jeffrey - oops, it looks like I was typing out my other reply when you posted, but thanks for the info and the offer of help, and I'll probably be asking questions about the domain stuff when I actually get the thing set up in the next couple week.

- David :)

jeaniesa
02-26-2003, 01:26 PM
David,

I can't remember if you have a cable or DSL connection, but you should look into the "fine print" of your contract with your ISP to make sure that you are allowed to have a server on their internet service. My brother lives in CA and chose a high-end DSL connection b/c he wanted to host a server and discovered that a lower-cost DSL connection as well as cable connection would NOT allow him to host a server on one of his machines.

Jeanie

d_kendal
02-26-2003, 07:50 PM
yup, I did notice that, I'm going to have to switch providers, but it's only $15 a month more so it's not that bad, plus it gives me more bandwidth. (I'm on DSL)

- David :)

G. Couch
02-26-2003, 08:14 PM
Sounds like you would learn a lot from doing it David...but you might pull all your hair out as well! Linux is a great choice for the server. I played around with Red Hat the other day and loved how stable it was compared to Windows.

One thing to consider- If you can't get a static IP from your ISP, there are services that will redirect traffic to your dynamic IP address. Tech TV has a good article here (http://www.techtv.com/screensavers/answerstips/story/0,24330,3331797,00.html).

KevinBE
02-26-2003, 09:08 PM
Good for you David. That sounds like a good project and it will be good experience for you. The new editions of Linux, Redhat 8.x or Mandrake 9.x are a good place to start. These new versions are much more user friendly than previous versions. Most of the set up is done from GUI menus now instead of the old shell script programming method. If you have time and energy to learn Linux the OS is free for download. The only thing you get with buying the OS is tech support, which you may or not think will be of benefit to you. There are tons of sites with help and documentation. If you know anything about programming with "C" you'll be right at home. If you are good at writing C shell scripts you can make a Linus box dance. But the new GUI menus make this not necessary any more.

One thing to consider on the hardware is how many concurrent users you will be expecting. For each visitor viewing a page on your site opens up a new session on the server. This can be CPU and RAM intensive because the server is multitasking. Linux handles this well but you might take this into consideration when deciding on hardware for the server. Highspeed processors are not as important as the amount of RAM and the speed of the harddrives. I would think a P-III, Duron, or Cellron processor would be OK for a linux server.

Hardware firewalls are no help for protecting a Web server. The very traffic that can attack you is what you will have to allow through the firewall so that your users can access your Web server. The firewall will shield your home network from internet traffic but be little help protecting your Web server. Linux has all you will need for restricting access to your Web server. Until recently my Linux server was my firewall and router. Of course I didn't allow any connections to my server at all from the internet.

Along those same lines, be sure that you do not have the Web server directly on your home network without protection. You will need a firewall between the Web server and your home network. You can use the Linux server to do this but you will need 2 network cards and set Linux to route between the cards with IP forwarding and IP spoofing setup ( IE a firewall). If they can see your server they could also see your network and you could be attacked if you don't take precautions.

I'm be interested in your progress. I just obtained a new box to replace my old linux server and I will also be experimenting with my own hosting. So get out there and blaze a trail for me.

d_kendal
02-26-2003, 11:02 PM
Greg - interesting to hear about the dynamic IP domain service, that's definitely something to consider, however I'll still probably have to switch hosts since my current package at my host (Telus) doesn't allow webhosting.

Kevin - I just finished downloading the ISO's for mandrake 9.0, I have the release candidate 2 loaded right now for my dual boot and I like it a lot. I tried out the new Red hat before I loaded Mandrake 9, but I like mandrake better, I was having problems in red hat accessing my Windows partitions, but that was probably due to my lack of Linux knowledge (in mandrake it's automatically set up so it mounts all of the partions). I know pretty much nothing about C, so I'm glad for any work they've done on menus, which mandrake has done some excellent work on IMO. I probably won't have a lot of users at the same time accessing my server, so I'm hoping what I'm going to start out with will be OK for a while anyway (I'm getting a Duron 1400+ with 256 MB pc2100 DDR ram, and putting in one of my two 40 GB 7200 rpm drives)
Linux is well known for it's security, so as long as I keep everything updated and use a high security setting (it can be set at installation or the control panel) I'm hoping it'll be fine. I haven't got any network up yet, but I'm going to try to use the server as my firewall when I do (the motherboard I'm getting has built in LAN, and I'll get a second one since they cost next to nothing) and I'll hook up the d-link 4 port broadband router I've got up to that so I can get my connection shared. it does have built in firewall, and I always have my software one running (Sygate) on my main computer. thanks for all the info!

- David :)

BigAl
02-26-2003, 11:25 PM
I built my own Linux Web server about 4 years back. A 100MHz P1 with 32MB RAM and a 6GB IDE disk. It still runs RH 6.0 with Apache 1.3.1. It's never been down, though the fan is a bit noisy now. I use it as a departmental Web server and as a source of Web-based coursework for my students. At peak usage it gets hit with somewhere in the region of 5k requests per minute and no-one has ever complained about slow access. I think if you go with an m$ server, you're going to need much more horsepower for the same throughput because of the overheads associated with Windows.

Of course, I'm fortunate in that the university I work for is the ISP.

d_kendal
02-27-2003, 12:00 AM
wow, that's a very impressive run time! what kind of internet connection is the server on?

- David :)

BigAl
02-27-2003, 01:50 AM
My lab has 100Mb/s ethernet, but the link to the rest of the university is thru fibre optic ATM - I'm not sure of the speed. Out from the university to the wire provider is a very-very fat pipe - not sure of that speed either.

KevinBE
02-27-2003, 07:50 AM
Looks like you have everything well on its way David. I haven't downloaded the newest Mandrake yet but I plan on it this weekend.

My problem on hosting a site at my house is that I can't get DSL. My house is too far from the Bell Central office. I have to be content with COX cable modem for now. My ISP wouldn't let me run a Web server without changing me more per month for my connection. So my Web server will probably just be a intranet server for now.

Mike Needham
02-27-2003, 10:35 AM
Echoing the thoughts of others David, I would say that unless you are expecting more than 5 people on your site at once, with the most basic of requests then the answer is to go with the proffesional host. :)

d_kendal
02-27-2003, 05:00 PM
Kevin - if you haven't seen it yet, Mandrake has put out the 9.1 RC1, which has some interesting sounding things, like automatic network configuration, NTFS resizing, and the latest versions of KDE (3.1) and Gnome (2.2 RC2). I'll wait til RC2 at least before downloading this one though so they can get rid of any major bugs (although there probably aren't many, Linux alpha versions are usually more bug free than any of MS's actual releases..)
It's too bad you can't get DSL, but in average situations it's not much faster than cable anyway.

Mike - this isn't really gonna be a good long term hosting solution, but I think it'll be ok for a while. if I start getting a lot of feedack that people can't access the sites, then I'll start worrying about switching to a host.

- David :)

winwintoo
02-27-2003, 05:37 PM
David, I'm looking forward to your experience. I was thinking about hosting a site on one of my machines just for the experience. I don't have a static IP address, so my hosting so far is intermitant and I have to send out a notice of the new address every time I boot :tongue:

From what I understand, most of the pieces/parts are already installed or free download from Apple, so I won't be investing much money to get it done.

I'm glad I have folks like you to learn from.

Take care, Margaret

KevinBE
02-27-2003, 05:40 PM
Thanks David. I was looking at that just recently. I think I will download 9.0 tonight, like you I will wait on 9.1 until RC2. I think I will bring it up as a intranet server to test my Web site on. That should give me enough to practice with. I don't really have a lot of spare time to play with something new, but I am going to do it anyway.

d_kendal
03-05-2003, 02:47 AM
well I've finally done it, I got my hardware and I'm almost finished building up the server, all I need to put in now is the hard drive and CD drive. I'm going to be using one of my 2 hard drives from my main system in the server, so right now I'm going through the oh-so-fun experience of going through many months worth of overdue clean up and backups of everything on my HD's (which is about 40GB's of data in total.. it's a good thing I bought a 100 pack of CD-Rs!) :( if all goes well, I'll be loading everything up and trying to get my networking going sometime this coming weekend.
Kevin - we're not gonna have to wait any longer! I just checked the mandrake page, and they released 9.1 RC2 yesterday. I never actually got to burning the CD's of 9.0 when I downloaded it last week, so now I'm just downloading the 9.1 RC2 overnight and I'll stick with that since it's pretty much the actual release, and if there's any bugs that they find I'll make sure to keep the system updated.

- David :)

KevinBE
03-05-2003, 04:31 PM
Hey David that's great. I hope you get the drive maintenance done and get 9.1 up before I do. I also downloaded 9.0 but didn't have time to burn the CDs. I guess I will download the 9.1 RC2 tonight. Maybe I will have time this weekend to try it out. I'm going to set up an Intranet server to do my Web site testing on at first and then see where it takes me.

d_kendal
03-06-2003, 01:47 AM
it's looking like it's gonna be a while before I've got time to do much with the server, I've got a lot of work shifts coming up and as much as I'd like to play around with it, getting my sattelite, DSL, cell phone etc. bills paid and finishing up all my schoolwork has gotta come first. I just realized that I've got an Apache book (the "Apache 2 Bible") which I got last year sitting around which should come in handy when I actually get to the configuration part of everything.

- David :)

KevinBE
03-26-2003, 08:36 PM
David, I thought you might like an update on my attempts to load Mandrake 9.1 rc-2. I have tried to load it twice, the first time it finished without an error but xwindows wouldn't run. The second time everything looked OK everything came up like it should but eth0 was configured wrong and it took my network down. So I am not impressed with their pre-release OS. I did get a e-mail from them today anouncing the official release of 9.1. I guess I will download this release and try once again to get the server up.

d_kendal
03-27-2003, 01:18 AM
that's dissapointing news about the release candidate, I hope they've cleaned up the issues for the release, in the past I've had good experiences with other RC's. I'm downloading the three 9.1 ISOs right now, I tried to do it a couple of days ago when it was released, but I couldn't connect to any of the FTP sites (or any I could connect to were so overloaded I could only get a 2 or 3 kbps - impossible for downloading anything ISO sized..) I still haven't got my server up yet though, I just haven't had much time at all lately, I still have to get a couple parts and get everything to work.

- David :)

KevinBE
03-27-2003, 04:03 PM
I tried to get them too and found the same problem. It may be a while before we are able to download them. I guess everyone was waiting on this release. I guess there are a lot of people who don't want to pay for the software. I don't have a real need so if I had to pay I would pass.

d_kendal
03-27-2003, 10:48 PM
I downloaded the ISOs succesfully last night, the site I was downloading from was this one here:
ftp://ftp.fi.muni.cz/pub/linux/mandrake/iso/
I just noticed today on the download page (here (http://www.mandrakelinux.com/en/ftp.php3)) they've added a whole bunch of new mirrors, so maybe you'll have better luck now.

- David :)

KevinBE
04-09-2003, 11:02 PM
David, I have changed directions. After getting a good look at the capibilities of Netware 6.0 I am going to bring up a Novell server instead of Linux.

Netware 6 has evolved more toward Unix than ever before. It has Apatchie imbedded all through it. 90% of the administration tools are now HTML based. It has, like Linux, all the components of a file server and Web server.

If I can get a strong enough box to support it I will bring up a Netware 6 server.

d_kendal
04-10-2003, 12:58 PM
Hey Kevin,

I'll be interested to hear how that works out for you! I'm not sure what the name of the book is (I can try to find out) but I know there is a book out there that has a full version of netware for a limit of 4 users, but I'm not sure which version it is, I'll let you know if I can find out what it's called.

- David :)

KevinBE
04-10-2003, 01:43 PM
I have the software I need already. I am in a Novell School this week in New Orleans. I have a 5 user copy of Netware 6 that I was given to use in the class.

I just don't know if the PC I plan on using is strong enough. Time will tell.