Server Setup - need advice

mokkapoop

[H]ard|Gawd
Joined
Jun 6, 2005
Messages
1,155
I have a personal project I am wanting to work on for myself. This is to help me learn the enviroment I try to support. With a better understanding, I can do my job better and will learn a great deal from this.

What I want to accomplish:

*Create a Windows Server 2003 Box

*Put the box on my TW cable (10mbps down / 1mbps up) connection

*Share with "the internet" or the "world"

*Create exchange with purchased domain name and impliment it into my server

*Create a website and run it from the box at home

Im sure if you are reading this, you are saying that I have alot to learn. I may, but I know quite a bit, I just want to connect it all together properly and make it work.

The box I am going to have is the following specs:

Emachine M2888
Celeron 2.8ghz
256mb ram
500gb HD
onboard video/audio/lan

I know its nothing special, but I believe it will suite my needs.

Now, my question is this: What do I need to do to set this box up behind a D-LINK router and make it visible for the world to see, so I can serve an FTP, a website, and possibly email (something I want to do for friends and family).

Where do I start?
 
First of all, make sure your ISP will allow you to connect a server to their network - not all will. Many will block the ports that allow E-mail and web servers.

Your machine specs are adequate for a light web server and e-mail load. If you do anything, I'd recommend going with 512MB RAM to run Win Server. BTW - you don't need to spend the bucks on Win Server for what you want - that's overkill. You can run a web/e-mail server on Win XP or XP Pro - I use XP Pro.

For the router - make sure it's a firewall router (probably is) and set it to only allow TCP ports 25 and 110 for e-mail and port 80 for web access. Block all other ports.

For a domain name - register and pay at a reputable domain registrar. They will do the paperwork and provide you with the ability to get your domain name in all the DNS routers on the Internet.

It's likely that your ISP gives you a dynamic IP. You can pay for a static IP or save money and simply run a dynamic IP update program on your server. Some ISPs will supply this - if not, I like DirectUpdate (shareware $25) but there are others. BTW - some routers have dynamic IP handling built-in. If yours does and it's compatible with your domain registrar, use that.

Make sure you have a good virus program on your machine from day 1. With a hardware firewall, a software firewall is less critical and you can probably get by with Windows Firewall (built into Windows XP etc). If you prefer, many virus programs have firewall components or compatible firewall packages.

For a web server, Apache. IIS is easy to get for Windows but I trust Apache a lot more. It's the number one web server and it's free. Look on the web for security advice for Apache and configure accordingly. You will find that lots of people try to break into your server and will be testing every hole. Installing Apache is easy, configuring can be a bit of a challenge.

For mail - many use sendmail. I use a simple program - Mail Enable. It's minimal and sendmail is more powerful but harder to configure. There are others, many are shareware or commercial products. Sendmail is free. Make absolutely certain you've blocked open relay. That allows spammers to use your server to send spam. Force all your e-mail users to use passwords and if you can, force them to use good ones (i.e. contain numbers and letters, upper and lower case, minimum 8 or more characters etc). You can set it so they change passwords every month or so too.

You can add Java, PHP, Perl and other products to Apache as you require - all free.

I build web pages with a simple text editor. If you don't know HTML/CSS etc, you can get web page authoring software. If you get to this step, come back for advice.

Good luck. You will learn a lot fast.
 
For the webserver I would use XAMPP. It is a package that includes Apache, MySQL, PHP, and Perl. It installs everything automaticaly and works out of the box so you don't have fiddle with all the crap to get everything together.

It even has a PHP switcher so if you ever need to, you can switch from PHP 4.x to PHP 5.x on the fly. Kinda nice for when you run into a possible compatibility problem with PHP.
 
First of all, make sure your ISP will allow you to connect a server to their network - not all will. Many will block the ports that allow E-mail and web servers.

Your machine specs are adequate for a light web server and e-mail load. If you do anything, I'd recommend going with 512MB RAM to run Win Server. BTW - you don't need to spend the bucks on Win Server for what you want - that's overkill. You can run a web/e-mail server on Win XP or XP Pro - I use XP Pro.

For the router - make sure it's a firewall router (probably is) and set it to only allow TCP ports 25 and 110 for e-mail and port 80 for web access. Block all other ports.

For a domain name - register and pay at a reputable domain registrar. They will do the paperwork and provide you with the ability to get your domain name in all the DNS routers on the Internet.

It's likely that your ISP gives you a dynamic IP. You can pay for a static IP or save money and simply run a dynamic IP update program on your server. Some ISPs will supply this - if not, I like DirectUpdate (shareware $25) but there are others. BTW - some routers have dynamic IP handling built-in. If yours does and it's compatible with your domain registrar, use that.

Make sure you have a good virus program on your machine from day 1. With a hardware firewall, a software firewall is less critical and you can probably get by with Windows Firewall (built into Windows XP etc). If you prefer, many virus programs have firewall components or compatible firewall packages.

For a web server, Apache. IIS is easy to get for Windows but I trust Apache a lot more. It's the number one web server and it's free. Look on the web for security advice for Apache and configure accordingly. You will find that lots of people try to break into your server and will be testing every hole. Installing Apache is easy, configuring can be a bit of a challenge.

For mail - many use sendmail. I use a simple program - Mail Enable. It's minimal and sendmail is more powerful but harder to configure. There are others, many are shareware or commercial products. Sendmail is free. Make absolutely certain you've blocked open relay. That allows spammers to use your server to send spam. Force all your e-mail users to use passwords and if you can, force them to use good ones (i.e. contain numbers and letters, upper and lower case, minimum 8 or more characters etc). You can set it so they change passwords every month or so too.

You can add Java, PHP, Perl and other products to Apache as you require - all free.

I build web pages with a simple text editor. If you don't know HTML/CSS etc, you can get web page authoring software. If you get to this step, come back for advice.

Good luck. You will learn a lot fast.



This is fantastic information. I really appreciate it. If anyone else has anything to add, please do!
 
For the webserver I would use XAMPP.
I was thinking of suggesting a combination package like that, but it tends to give a lot more than someone might need. Unless you're gonna run a wiki or a serious interactive web site, MySQL is not needed. However, if the OP really likes the idea of getting everything at once, that's a good way to go.
 
The sheer easyness of setting up XAMPP over doing it "by hand" out weighs the possibility of not needing a component such as MySQL. Also, the service can be disabled in the MMC if for some reason it causes problems, but a dormant MySQL service is pretty much harmless if the box is secure.

Also, the OP may not be thinking about a database driven site at the moment, but often once people dive into things like this, they start expanding what they want to learn and to accomplish. By using a complete package like XAMPP, he is covered for pretty much anything he wants to learn and do.
 
Back
Top