0
MWGemini

So I want to host my own web server

Recommended Posts

I have a spare system lying around, running Mandrake 9.2. I originally installed it just to play around with linux, but never had the time.

So now I've decided to try setting up my own web server. I own a domain and it would only be really small, more as a learning experience than anything else. My question is- what software will I need to install to do host that, connect to DNS servers, and possibly even run an e-mail server? I know Apache is an oft used system, but beyond that, I know very little or nothing.

I should also put in the disclaimer that I am very inexperienced with linux, so I'm not asking for a comprehensive how to guide, although links to good ones would definitely help, but rather, what programs are required for an undertaking such as this. Suggestions from people who have experience in this are what I'm looking for.

Thanks,

Mike

Share this post


Link to post
Share on other sites
That's not an issue. I've already run FTP servers off this box, I have a pretty fast cable line, but bandwidth isn't a concern for me. My provider doesn't have a limit, and the pipe doesn't need to be big, as I won't be hosting a lot of large files, nor will traffic be much (if at all). It's mainly just to get experience doing it.

Mike

Share this post


Link to post
Share on other sites
It's not hard to do. I'm not a linux guy but I used to run apache on a windows server. Setup took a while but once it was going, it was going.

If you have a static ip address, it's very easy. Go to your domain registrar's website and you just set your dns settings there. Just put in your ip address where they ask for it, and within a few hours or so, hits to your domain will be sent to your server.

Apache is free....play around. No need to even set the domain stuff up right away either... Once the server is running, you should be able to connect straight through the ip address.

Dave

Share this post


Link to post
Share on other sites
It's not so much finding one that I'm worried about. With open source software, there are numerous options. I'm hoping to get a response from someone who has tried a few and/or set up a few and can suggest a noob friendly package ;). I'll keep looking though, thanks for your help.

Mike

Share this post


Link to post
Share on other sites
So only having apache will do the trick, or do you use apache on something like windows server 2000, or 2003? Those programs are high as a camels ass. 2000 is listed at $1700 and 2003 at $3800. I just got a domain name and running off brinkester.com that has 500mb storage, and 7gig bandwith. I am looking at running it off my home computer just to do it for fun to say I have a home server. What do I need?

Share this post


Link to post
Share on other sites
Nuttin but apache (or any other http server). Apache is great but not very easy to set up. I started with a program called Omnicron httpd, which was windows based (apache has no gui...runs in a command prompt window...although i'm sure guis are available). But when I wanted to add php functionality to my site, apache was the way to go. PHP and MySQL database server are free to add. Can really get fancy then.

Dave

Share this post


Link to post
Share on other sites
Linux is free, and there are numerous different distributions out there. I've had my linux box running for about 6 months straight without a reboot, running FTP and teamspeak servers constantly. FAR more reliable than ANY Windows OS I've ever used. In my opinion, linux is far superior in many ways to Windows. Apache is a linux based program that if I am not mistaken, is the backbone for most of the internet (in terms of servers) and has been licensed by IBM and other companies for their server software. I'm unsure if it can do SMTP/email hosting however, still trying to figure that out. The biggest problem with linux is that there is so much information out there, it is hard (for me at least) to find the information I'm looking for.

Mike

Share this post


Link to post
Share on other sites
I got my XP machine to run for 100 days straight between reboots...and actually used it that whole time for everyday use/games. Course the mouse stopped working on day 98. But I wasn't gonna let that make me restart. :)
But yeah, there's a windows version of apache. Works just like the linux version.

Dave

Share this post


Link to post
Share on other sites
Web Server - Apache + Mod SSL(SSL if you want encrypted Pages.
Email Server - Exim is best, most difficult to setup, Sendmail is 'okay', easiest to setup.
DNS Server - Bind, but you probably won't be running it--let your domain registrar do it for you.

Although it makes it easier, a static IP is not required. Check out http://www.dyndns.org for information on dynamic DNS. You can setup your domain name to CNAME or redirct to your dynamic dns entry.

As for the guides, there's plenty. Do a search on 'How-to' + for more details.
-----
2+2=5 For Large Values Of 2

Share this post


Link to post
Share on other sites
Lets put it this way.. Sendmail is pretty easy to install and configure, but screw it up and you are running a full mail relay server. That will get you kicked off your ISP faster then you can ask what happened.

@home, Roadrunner, and most the Cable networks are really fast to kick people that have a mail server misconfigured since they are now serving as spam bots. I've helped get probally 50 users off those ISP's and that just since they were more annoying then any others to me and the mail team at work.

Read up and know what you are doing before you do it. Nothing makes me madder in terms of PC's then stumbling across a PC on the net that some wanna be techie installed all these apps on that they don't know anything about then sets their PC up to be hacked and turned against the rest of the net.

Read all about mail and understand how SMTP works and the security holes in it and how to avoid them before doing it.
Yesterday is history
And tomorrow is a mystery

Parachutemanuals.com

Share this post


Link to post
Share on other sites
Exim is more robust in the way it scales and how it handles upon thousands of users and mailer plugins.

For what you want, sendmail is the way to go. PhreeZone has a point about the configuration; however, newer installs default to only accepting connections from localhost so you're somewhat safe after you start it for the first time.

Before you do anything, I would familiarize yourself with compiling software on your box and understanding what modules you need and don't need. Putting a linux/unix/windows box on the net and not knowing what services it's running, why they're running, and how to properly secure them is somewhat dangerous. Forget spamming for a moment, if you're exploited, you could be use as a part of distributed denial of service attacks which will get you kicked off your network.

Don't take the above as a reason not to do it, just think and plan before you actually plug in to the net with it up and running.
-----
2+2=5 For Large Values Of 2

Share this post


Link to post
Share on other sites
Iota and Phreezone, great points, something I had not thought of recently. Due to my local setup, I'm running a router, which will help to make things more secure (as it only allows data through on the ports I specifically open and forward to specific machines), but will that be enough?

Also- this is only applicable to the mail server, correct? In other words, can I safely run a web server (Apache) without having to worry that misconfiguring it will leave my box open to being taken over? If a hacker gets into my system and totally destroys it all, thats something I can deal with, though I'd obviously like to avoid that. But having my hardware used maliciously is something I cannot allow.

Thanks,

Mike

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

0