Web Hosting
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb HostingWeb Hosting

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 13th, 2003, 08:01 PM
codeb codeb is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 10 codeb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
home hosting question

Hi, I would like to host my site on my own PC at home. Could anyone tell me what steps should I take? Thanks in advanced.

Reply With Quote
  #2  
Old April 13th, 2003, 09:23 PM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 8 m 45 sec
Reputation Power: 27
I wouldnt do it on your own PC. I would get an old box and set it up on that. Do you know Linux? That is the better choice than Windows since it has better security and stability.

If you are going to use Windows make sure you put a firewall on the machine to block off the security holes windows has. Don't rely on Windows XP's built in firewall, it sucks.

Are you going to be hosting any scripting languages on the box?
Are you going to be hosting any databases on the box?

I would reccommend Apache as a webserver but this can't be used if you plan to host ASP pages. If its going to be PHP or standard HTML use Apache. If you do have to use ASP and install IIS make sure you download all the patches for it because before you know it you will be infected by Nimda or CodeRed. If you dont know what either of those are I would STRONGLY advise against setting up your own site on your system since you will get hacked since you don't know enough.

If you put a database on your machine make sure that it is secured correctly. DO NOT rely on default installations. They are not secure. Ever. You need to edit the configuration files for Apache and MySQL (or whatever db you are using) and make sure that it is not accepting connections from the internet and make sure you set a password for access. The amount of times I have seen systems with databases accepting root connections from the web is scary.

You havent provided much information as to what you want to do, read through what I have posted and then give me more information as to what you are going to do with the system.

Reply With Quote
  #3  
Old April 14th, 2003, 12:04 AM
codeb codeb is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 10 codeb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks, I'm thinking of FreeBSD, is it a good OS for a web server ?
I thought of Apache, installing PHP and mySQL too (all new stuff to me). I have these hardwares:

- Intel Celeron 667 Mhz
- Cache: 32 kb level 1, 128 kb level 2
- Memory: 2 * 256 mb SDRAM
- Chipset: Intel 810
- 15 gb hard drive, 5200 rpm

Is that good enough for a web server (my site have a lot of visitors)?

Reply With Quote
  #4  
Old April 14th, 2003, 12:27 AM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 8 m 45 sec
Reputation Power: 27
Yeah, that looks to be quite good. FreeBSD is a very good OS to use. Its very efficient and stable. You should use the ports of PHP and Apache rather than compile the source yourself. You will find the ports very up-to-date and the system will be a lot more stable for it.

The best advice I can give is to ech what I said before. Don't ever rely on the default install of software to be secure. Quite often there are many daemons running on a system that are not used. If you dont know what it is, kill the process. If everything still works fine then its not needed and can be removed from the loading script. Also its good to firewall off all ports that you are not using. You are best to keep track of security updates and alerts, you should know what versions of what software you have on the server. Read through security alerts and make sure that your system is not effected. If it is obtain an update right away and make sure its secure.

If you expect a large amount of hits then your internet connection will be the bottle neck in the setup, not your server. The server will provide the information but it will be slowed down by your internet connection if you are on something like ADSL.

Reply With Quote
  #5  
Old April 14th, 2003, 12:30 AM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,332 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Most *nix-based OSes have Apache and srabndard mods built in, so you'll only have to worry about configuration. As far as the computer spacs go, as long as it's enough for your OS, hosting won't put too much strain on it for hosting one site ("a lot" of visitors or not) I'd be more worried about your internet connection speed.

<edit> ^^ beat me to it </edit>

Last edited by mttatkns : April 14th, 2003 at 12:32 AM.

Reply With Quote
  #6  
Old April 14th, 2003, 12:57 AM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 8 m 45 sec
Reputation Power: 27
Quote:
Most *nix-based OSes have Apache and srabndard mods built in


They dont have it 'built-in', they come with the option to install them but its not needed and not included as part of an install unless you specify it.

OS'es like Debian and FreeBSD just install the base and then you add on whatever software you want onto that base.

Reply With Quote
  #7  
Old April 14th, 2003, 01:18 AM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,332 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Quote:
Originally posted by a.koepke
They dont have it 'built-in', they come with the option to install them but its not needed and not included as part of an install unless you specify it.

OS'es like Debian and FreeBSD just install the base and then you add on whatever software you want onto that base.
I meant he probably won't have to download/compile it.

Reply With Quote
  #8  
Old April 14th, 2003, 01:42 AM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 8 m 45 sec
Reputation Power: 27
Yeah well I said that in my post.

Quote:
You should use the ports of PHP and Apache rather than compile the source yourself. You will find the ports very up-to-date and the system will be a lot more stable for it.


FreeBSD has the ports project which has ports of heaps of apps which have been made to ensure they work under FreeBSD correctly.

Reply With Quote
  #9  
Old April 14th, 2003, 01:53 AM
codeb codeb is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 10 codeb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks!

I'm on ADSL. Is it the average speed most web server need? Many of my visitors will come from oversea.

One thing I'm considering is the cache size. Do you think my cache is big enough?

Reply With Quote
  #10  
Old April 14th, 2003, 02:11 AM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 8 m 45 sec
Reputation Power: 27
Web serving is not cpu intensive. It only really needs RAM, of which 512MB is plenty to have a fast server. A lot of people have ADSL these days and its a good rule that your server should have better connection than your clients. ADSL is not good for hosting as its really slow sending information on uploads, which is what you need for hosting. A lot of connections only have 64K or 128K uploads in comparision to 128K or 256K downloads. Due to that you are already behind. Now if you have 50 people on your server at once requesting documents you will have a severe bottle neck in the connection.

Reply With Quote
  #11  
Old April 14th, 2003, 02:17 AM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,332 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
You said most of your customers will be overseas. This doesn't really affect the connection speed unless they're on dial-up, in which case your connection speed would be sufficient as long as you only have serveral clients at a time.

Reply With Quote
  #12  
Old April 14th, 2003, 02:44 AM
codeb codeb is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 10 codeb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Too bad most of them use dial-up. In average, I have about 15 - 30 clients at one time, is that ok?

Last edited by codeb : April 14th, 2003 at 02:47 AM.

Reply With Quote
  #13  
Old April 14th, 2003, 02:52 AM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 8 m 45 sec
Reputation Power: 27
If you know most of them will be on dialup it should be sufficient. As long as you have pages that are not really image heavy and also dont offer 100meg video downloads you should be right

Reply With Quote
  #14  
Old April 14th, 2003, 06:37 PM
codeb codeb is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 10 codeb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks, my site would be just text mostly. Thanks again guys, I find this place very helpful. Nice day.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb HostingWeb Hosting > home hosting question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump