Help - Search - Members - Calendar
Full Version: How to use a computer to host a web site?
InsanelyMac Forum > Discuss and Learn > Internet(s), Servers, and Networks
asap18
Ok, heres the deal, Sorry if im a noob on server stuff. I have a website registered through godaddy. I cancelled my hosting in hopes of being able to make my p4 3.2 ghz 2 gig of ram a dedicated server. I put windows server 2003 on there and have been stumped on how to do it. I dont know if you can but how do you configure everything to go through it and maybe be able to use my hard drive as an ftp site. Please help!!! Thanks, any comments will be appreciated.
fireshark
Are you planning to host form home?
domino
What's you home net badwidth?
can you buy a dedicated IP from your ISP?
How much data are you actually trying to host?
Are you partial to Win Servers only? Why not Apache?
Are yo intersted in running a webhost server where you can host multiple domains on a single IP address?
asap18
Yeah I want to host my own website through windows server 2003 at home. For my bandwith its about 6 megabits down and 1 up. I dont think Ill be having too much bandwith. Also I dont have a dedicated IP but is it necessary to do so? Ive tried apache but Im not too good with it. Ill try it again if it tis the best. Im probably also interested in running two domains sincd I have one with network solutions. Would it be smart to go OS X since it has apache bulit in?
domino
Well in time you'll know how much you can actually serve on 1 megabit upstream.

QUOTE
Also I dont have a dedicated IP but is it necessary to do so?

The problem with using non-dedicated IP is when you send mail, the ISP you are with are usually listed at spam databases. Any mail you send will be flagged as spam by the client. One thing you'll need to consider is how often your IP changes. Road Runner changes IP very seldom. So you might be okay with it if you don't mind getting flagged as spam.

If your IP changes frequently, you'll need to use an application to tell everyone that your new IP address is different. You can get more info from DynDNS or the like.

QUOTE
Ive tried apache but Im not too good with it.

that shouldn't be a problem. there is a site that will work perfectly for you. They also have a free webhosting solution if you want to serve more than 100000 domains smile.gif. You'll find me at the forums sometimes.

http://www.howtoforge.com/

QUOTE
Would it be smart to go OS X since it has apache built in?

I prefer Linux/Apache since it's more scalable and uses less resources running 24/7/365.
A Nonny Moose
How to host a webpage using OS X:

1. Make sure you have a fast internet connection (like cable or DSL) and leave it on

2. Create your webpage using whatever you choose (even Word!)

3. Save site in /users/(your user name here)/sites folder

4. Go to the Sharing pane of System preferences and activate personal web sharing. Make sure to record the numbers OS X tells you (because that is the site address)

5. There is no step 5
domino
Not as simple as that Moose. You need to install and config dns server, mail server, ftp server, bind, database server, and all the nessessary modules for proper multi-site managment. you'll also need to configure iptables (firewall) properly if yo are giving 6 billion people client access to your machine wink.gif.
asap18
Ok I have fedora 5 already and will use that. Should I use ISPconfig as I saw a how to on the howtoforge website. Also how do I know what dns servers to put in. I know I can change my dns servers to point to the computer on godaddy but how do I know what address to put in? And after will it just be as easy as going to ftp://mysite.com to access the ftp server and www.mysite.com to access the site from anywhere. I wont have to put ip's in right?
domino
You are running the DNS server after completing the how-to. Just follw exactly what the tut tells you and copy/paste properly. I take you already have a domain form godaddy. The trick part is that you have a dynamic IP. When your IP changes, he domain registry will not know unless you tell them. That's why a static IP is much easier to work with when running a server at home.

Everything you need i've posted on there forum. I am beta testing the new ntfs-3g mods so i'm very busy trying to nuke my system right now. read over at the forum and you should be able to get it running by next week wink.gif. Here are key things you need to run a server with dhcp:

- zoneedit.com account
- ddclient-3.6.6 from the repo or http://sourceforge.net/project/showfiles.php?group_id=116817

Then search all the posts that I started and replied to on the forum. you'll notice i had a godaddy account at one point.
asap18
thanks for the help but I put in the exact dns server addresses they used?

EDIT: I see I will get my dns from zonedit right?
domino
What page are you on? the DNS address they give in the tut is working DNS server. You may use it or if you know anothe DNS server, use that. You can use the one on the tut for now and change it later if you like.
asap18
I'm on page two. I put the dns adresses i got from zone edit right?
domino
QUOTE (asap18 @ Jul 23 2006, 04:16 AM) *
I'm on page two. I put the dns adresses i got from zone edit right?

use these 3:

145.253.2.75
193.174.32.18
194.25.0.60

those are live DNS Servers.
asap18
But why cant I use what zonedit told me to. I just went onto godaddy to point to the nameservers that zonedit made me. Then I put those on my comp so in essence it points to my computer. Tell me if im wrong.
domino
1. The IP address is provided by your ISP.
2. A script you will install in Fedora will tell Zoneedit what IP address you currently have.
3. Anyone that looks for yourdomain.com will connect to ZoneEdit and ZoneEdit will forward them to your router.
4. your router will port forward the request to your computer.

it's important that you have your firewall port forward port 80 to your server's LAN IP. Let me know when that phase of the setup is done.

Edit: Oh, and another thing. It takes a few hours to 12hrs for your domain settings to propagate. meaning your registry changes will not be known world wide for 2 -12 hrs depending on the registrar.
asap18
That Fedora Core 5 Perfect Set-up how to is way to complex for me. Most of the time I got errors and some commands couldnt be found. Can you PM me with steps on how to get fedora running my webserver,ftpserver, and maybe a mailserver. Maybe break the steps down. Thanks a bunch.
domino
hehe, Like I said earlier, it' not going to take a few days to get it right. One week would be a good time for someone new. You can't get any more easier than the howforge version. I will not support anyone with IM and tutorials unless they have the exact computer and network as I do. I hope you get what I mean. Too many variables that I don't know about.

One thing I didn't ask, are you dual booting or is this a dedicated machine. If you think this is too much for you, you can always run MAMP for OS X (UB), or this tutorial or howtoforge.com - ubuntu dapper server (real easy)

Oh, and one last thing. The hardest part will be the DNS and IP forwarding for both WAN and LAN if you have a dynamic IP.

good kuck!
asap18
Ok I've done some looking around and am probably goin to use mamp. For the dynamic ip problem, I think Ill just stratch my domain and use a no-ip domain. Can you walk me through or redirect me to do this?
domino
Just use your existing domain and the ZoneEdit account you have already set up. All you need now is to port forwad ports 80 to your OS X machine running MAMP.. It's optional to port forward ports 110, 25, and 21.

Now download DNSUpdate and configure it and you're all good.
asap18
You mean forwarding the port in the router or in mamp
Colonel
What about a SLED server?
gwprod12
You should just be able to forward the external port directly into your DMZ server. I've never had a problem with that. Just make sure you get the port right, because some applications use specific ports for outbound and different ports for inbound traffic. If it's just a webserver, 80 should be fine.
domino
QUOTE
What about a SLED server?

I sense a little indeciveness here. Maybe you need to research a bit more on exactly what you want. Will this be permanent? How much are you willing to learn? How will this benefit you down the line. The easiest way to get a web server up is by using mamp, lamp, or other read-made-servers. There is no shortcut in trying to port map packets in your network. There is a lot of information out there you can read and I don't have the time to retype what has been typed, according to Google, more than about 3,260,000 times. Give or take a couple of million wink.gif.

You can do what gwprod12 said and set your router to DMZ your OS X IP address. Just remember to set your OS X firewall correctly because you are giving unregulated access to that IP address.
asap18
Thanks for all the help. So when I dmz my ip in os x it will only open it up to my computer. I can't have it open up to the whole lan since about 3 comps are windows.
domino
Demilitarized Zone, on my router, will forward any incoming and outgoing data to one IP address, and will allow incoming and outgoing to all ports on that IP address. In OS X, you will enable the firewall and only allow port 80. All other service ports doesn't have to be open unless you need them.
asap18
How do you make permissions to execute? I know how to do it in windows but not in mac.
domino
Okay... I think I have done an adiquate job answering most of your questions and there is no reason for you not to be able to search the information on your own. If you can't google "how to change permission os x ", you should quit while you're ahead.

good luck..
asap18
Thhanks everybody, I went back to windows since i wont be using os x much as I have a macbook. Then I ran Apache, Direct Update, and GuildFTPd. Everything is working.
x220v
QUOTE (A Nonny Moose @ Jul 22 2006, 03:01 PM) *
How to host a webpage using OS X:

1. Make sure you have a fast internet connection (like cable or DSL) and leave it on

2. Create your webpage using whatever you choose (even Word!)

3. Save site in /users/(your user name here)/sites folder

4. Go to the Sharing pane of System preferences and activate personal web sharing. Make sure to record the numbers OS X tells you (because that is the site address)

5. There is no step 5


I have a problem, the apache says, this error, 403 forbidden you don`t have permission to access this server file, the apache documents says something about the files permission but i check the folders on /sites/pagename/ all the permission are readable and writetable.

i want to have a dedicated server on my mac, i have a ibook g3 800mhz, and the web file sharing works fine.. i don`t know if the problem it`s the macos x86 10.4.5 have errors.

any help will be great

i`m using.
-macos x86 10.4.5
-intel 915g board
-pentium 4 3.0ghz socket 775
-tricom ethernet.
-1 gb ddr_ram 400.
asap18
I think you are trying to run a php script on yuor server. Usually u need toe dit httpd.conf and remove "Order allow,deny" and " Allow from all" in the Directory-tag
yoda75
If you are running windows then I might suggest this WAMP- http://sourceforge.net/projects/netserver/ - It's called netserver. I am new to the server thing too and so far it has been a trouble free experience for me. I might add a little tip. When you do your port forwarding, make sure to do so on both your LAN router as well as any DSL router your ISP may have installed in your home. This was my biggest source of my frustration when I was trying to set up my server but once it was sorted out it was smooth sailing.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.