LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-03-2004, 11:22 PM   #1
darkgamer20
LQ Newbie
 
Registered: Oct 2004
Location: Fremont, CA
Distribution: Fedora 5
Posts: 17

Rep: Reputation: 0
Apache set up


hello everyone,
I am trying to set up a basic webpage server with apache. I have been trying to search on google but I couldn't find any thing helpful.I tried playing around but it didn't work for me. Any way I use a SpeedStream 5100 and a Linksys Wireless B router I use internet through the ethernet ports NOT wirelessly. Oh my Router product code is BEFW11SR. I will aperciate any help. I am planning to set up my sever on Debian sarge. If you anything is better for the job please post it. Oh also please tell me if it is going to cost anything? I want to keep the spending low. I am kind of new to linux, but not too new, so bear with me please.

Thank You,
darkgamer20
 
Old 12-03-2004, 11:36 PM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Are you asking about Apache, your router, ethernet, 802.11b, NAT/PAT, web programming, colo hosting or a self run server.

If I'm being dense, I apologize, but I really don't see your question. It looks like you want ot run a server on your home internet connection, but the rest of that info kind of throws me.

Last edited by sigsegv; 12-03-2004 at 11:41 PM.
 
Old 12-03-2004, 11:57 PM   #3
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Looks like he's trying to set up a webserver on his home lan. Well, set up debian sarge and downloaded the latest apache source from http://apache.org.

1. Compile it and install it.
2. On your router, you need to forward port 80 to your linux box.
3. Get a domain name (either buy one or just a free one from say dyndns.org)
4. That's it.

Let us know specifically what you need or what problems you have encountered.


-twantrd
 
Old 12-04-2004, 12:14 AM   #4
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
I might add that you need to get approval from your ISP to do this ... some ISPs terminate service over users running web/ftp servers.
 
Old 12-04-2004, 12:16 PM   #5
darkgamer20
LQ Newbie
 
Registered: Oct 2004
Location: Fremont, CA
Distribution: Fedora 5
Posts: 17

Original Poster
Rep: Reputation: 0
hello everyone,
I am sorry, I didn't make my question clear. My question was how can I set up an apache web server? I couldn't find the answers by searching on google, the other information (e.g router) for you guys . OK anyway I am in the process of installing debian and installing apache. One more thing I want my friends and relatives to go www.relpac.com and see my website , I registered that domain, currently I am using a domain and hosting service. Do you guys think that I wouldn't need that stuff once I set up my server? Thank you for your help.


Thank you,
darkgamer20
P.S I asked my ISP (SBC DSL) if i could host a webserver and they said I could.

Last edited by darkgamer20; 12-04-2004 at 12:18 PM.
 
Old 12-05-2004, 12:36 AM   #6
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Code:
Do you guys think that I wouldn't need that stuff once I set up my server?
Yup. Once you get your apache running (and with the appropriate modules that you need) then you can host everything yourself. That's what I do and I love it.

-twantrd
 
Old 12-05-2004, 11:23 AM   #7
Groundhog1248
Member
 
Registered: Nov 2004
Location: PA
Distribution: Redhat Federo 3.0
Posts: 32

Rep: Reputation: 15
How do you have yours setup? That's what I want to do. I have apache running my web site off of http://(my ip address). I bought a domain name last night but how do I setup apache to tie the ip address and my domain name together without using godaddy.com to forward my domain name to my ip address? Or do I need some kind of domain forwarding service?
Thanks
Quote:
Originally posted by twantrd
Code:
Do you guys think that I wouldn't need that stuff once I set up my server?
Yup. Once you get your apache running (and with the appropriate modules that you need) then you can host everything yourself. That's what I do and I love it.

-twantrd
 
Old 12-05-2004, 12:01 PM   #8
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
You have to have DNS servers to act as SOA for your domain. I run a small hosting bx for me and a few small business customers. Here's my setup.

I'm doing name based virtual hosts with Apache and have BIND9 running DNS service. When I register the domains, I have the nameservers listed with the registrar set to two of my servers, that way, I control the whole operation from the registrar down (not including ISP of course). I host email and ftp and shell accounts on the same servers.

I think DNS is probably the piece of the puzzle you're missing. Sounds like you have a domain and Apache. You just need to tell the internet how to find you (which is what DNS does).
 
Old 12-05-2004, 12:45 PM   #9
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
You'll find quite a bit of info that you need on my site . Cannot help with the router but normally they have quite good manuals and providing you can do port forwarding with it, it should work well.
 
Old 12-05-2004, 04:40 PM   #10
darkgamer20
LQ Newbie
 
Registered: Oct 2004
Location: Fremont, CA
Distribution: Fedora 5
Posts: 17

Original Poster
Rep: Reputation: 0
ok I installed Debian Sarge and set up apache. Next I went to www.cjb.net and got a redirecting url for my ip, so that when someone types www.darkgamer20.cjb.net they will go to my site. But when I asked my friend and tried with the other computer connected to my router, to go to the site it is asking for the router configuration password and user. So I stoped everything so that when you type in my url it won't go anywhere. I am not sure how to port forward, if someone could post a guide or something that would be great. Also one more thing, what is the ServerName thing for in the apache httpd.conf file, do I just enter a name and then restart apache and except to go to that site ( The one that I entered in the apache conf file)? Is it possible to set up a .com with out registering it.

Last edited by darkgamer20; 12-05-2004 at 04:41 PM.
 
Old 12-05-2004, 05:54 PM   #11
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Quote:
Originally posted by darkgamer20
Is it possible to set up a .com with out registering it.
No
 
Old 12-06-2004, 12:42 AM   #12
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
That sounds like your router is taking over port 80 for administrative remote login. Honestly, I would disable this feature (if it allows depending on your router) for security reasons. If you can disable it, then perfect. Try to port forward port 80 (on your router's settings) to your linux ip address. Then try to domain name again, it should work.
Take a look at your router's manual for help on this. Easiest to do is login to your router and check out the settings it has. The settings on your router are pretty straightforward. If you still need help, then post back the make/model of your router.

Code:
Is it possible to set up a .com with out registering it.
Correct, the answer is NO. However, if you are doing this only internally (like an intranet website or whatever) then yes you can with Bind or whatever DNS service you are using.

Code:
Also one more thing, what is the ServerName thing for in the apache httpd.conf file
That ServerName field is the name of your apache service. Just name it: www.darkgamer20.cjb.net. Also, take a look at the comments of what it says for ServerName in your httpd.conf. It tells you what it is.

-twantrd
 
Old 12-08-2004, 03:43 PM   #13
darkgamer20
LQ Newbie
 
Registered: Oct 2004
Location: Fremont, CA
Distribution: Fedora 5
Posts: 17

Original Poster
Rep: Reputation: 0
sorry for not replying. well I got everything to work. i stopped using the router because it was giving me trouble. so now if you go to www.darkgamer20.cjb.net you will go to my site. all i did was just install apache through apt-get and it set it up for me. then i just editted the conf file. thanks for the help everyone.
 
Old 12-08-2004, 05:16 PM   #14
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Glad to hear you got it working. Yea, apt-get rocks!!

-twantrd
 
Old 12-09-2004, 02:32 AM   #15
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
darkgamer just to let you know I tried the addie and got a message from firefox about a popup and then a blank page.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Set Up? carlosinfl Debian 3 08-29-2005 11:18 AM
how do i set up apache?? snakeo2 Linux - Newbie 1 03-27-2004 02:28 PM
Apache set up spoody_goon Linux - Newbie 5 10-19-2003 03:41 PM
How to set up apache ? sameermanagoli General 1 06-26-2003 09:34 PM
apache set up myquestion Linux - Software 1 02-21-2002 03:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration