LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-27-2003, 06:03 PM   #1
aroneous54
LQ Newbie
 
Registered: Jan 2003
Posts: 5

Rep: Reputation: 0
Unhappy Help Linux newbie setup Apache


Hi folks! I'm a newbie to Linux and I just installed Red Hat 8.0 and I installed Apache. I can go to http:/localhost and see my index.html that I stuck in the www folder on this machine. Now first off, I'm on Time Warner Road Runner Cable/Dsl. I have a little Router that I'm hooked up to, its a: Dlink Di-704. There are two computers behind the router. The linux machine is behind the router. I need to figure out how to make my page available to the outside world. Like I said, I'm pretty new to this stuff (linux and web servers) and am not sure how to configure things and what my "address" is that I would type on another computer outside my network to see my page. I would extremely appreciate any help that people could offer. Thanks, and long live linux!
 
Old 01-27-2003, 06:52 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Try this:
Go to this page:
http://dynamic.zoneedit.com/checkip.html
See the IP? At a computer outside your home network try go to it with:
http://whatevertheipis

If it works, then you are good to go. However, I do believe you'll need to setup your router to forward to the IP of the computer that you will be serving up webpages from. To get the router to forward to that IP, use:
ifconfig
To obtain the "generic" ip of that computer. Then, in the port forwarding section of your router's config, enter that IP in. You will be forwarding to Port 80 for now, this does assume your ISP hasn't blocked that port (which you will find out fairly quickly). Main thing you'll want to do with the box serving up pages is give it a static IP. You don't want it to be dynamically changing on each reboot, otherwise you'll have to edit your router's forwarding each time as well.

Check out my amazingly long thread on setting up a router, it's not for a D-Link, however, it does contain some generic, valuable information for anyone with any router: http://www.linuxquestions.org/questi...threadid=40355

For specifics on your router, check your manual, or post up a link to an online manual so we can walk you through it.

Cool
 
Old 01-27-2003, 06:55 PM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
AND, I forgot something:
Welcome to LQ

You may want to also look at getting a Domain Name registered. That way people will be able to access your box by going to:
http://anactualname.com rather than an IP. Names are much easier to remember. If you've got a Dynamic IP from your ISP, then I'd suggest looking at www.no-ip.com They work great with Dynamic IP's. There are others out there, look in www.google.com for Dynamic IP DNS.

Cool
 
Old 01-27-2003, 07:20 PM   #4
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Rep: Reputation: 32
I have the same exact setup you describe.

First...
You need to go into the D-Link 704 admin page. Open up select the "Advanced option" open up port 80 on the IP of the webserver. Note that your ISP will most likely block port 80 (mine did) so you may want to open 8080 as well.
Click save. Then reboot the router.

If you're lucky this will work. Try opening a browser and typing http://your_IP_address . the IP referred to is the IP you ISP has assigned you NOT your local 192.168.0.XXX IP.

If this failed, try changing the Port directive in apache from 80 to 8080. remember to restart apache. Then try your URL again.

Next thing you'll want to do is go to www.no-ip.org and they will provide you a free generic URL (unless you have a more specific one in mind).

I don't want to clog the thread will all of the minutea so feel free to e-mailme if you get stuck.
 
Old 01-27-2003, 08:05 PM   #5
aroneous54
LQ Newbie
 
Registered: Jan 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Hi, thanks for the great responses. So here's what I've done. I setup the router to work with the port 80 and 8080 and set the ip address for those to be the linux server. It didn't work, so I went into apache config file and changed the 80 to 8080. This still didn't work when I tried entering my i.p. address (the one my isp has assigned me). Any more ideas on how I can work out these kinks? I totally appreciate the help. Thanks!
 
Old 01-27-2003, 08:18 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Do you have 2 boxes on this network? Can they communicate with each other? Can you ping the IP of the server box from the other box? If so, then I am leaning towards making sure your router is setup correctly. Hopefully cmfarley will be able to offer more advice on that end. For now, when you changed your apache config, did you restart apache? I believe the command is:
/path/to/apachectl restart

Cool
 
Old 01-27-2003, 09:41 PM   #7
aroneous54
LQ Newbie
 
Registered: Jan 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Hi, I tried the ping and it worked. I did do the apache restart whenever I changed the config. When I changed the config there were three places were there was the number 80 listed regarding port. I tried all the different combinations of changing it to 8080 but I'm not sure exactly which ones should be 8080. cmfarley19 if you have any more advice on the router stuff that would be super. Thanks guys!
 
Old 01-28-2003, 05:28 AM   #8
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Rep: Reputation: 32
Why don't we take this off-line. Once we get it working we can post results back to the forum.
e-mail me your httpd.conf file and your IP. By the way, is your IP static or dynamic?

And we'll take it from there.

Just click the e-mail icon below my post.

Chris
 
Old 01-28-2003, 07:31 AM   #9
aroneous54
LQ Newbie
 
Registered: Jan 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Hi Chris, i want to email you, but under your post there is no email icon. There is the email icon under my post and under MasterC's post, but not yours. do you have this option turned off maybe. My email is on there, so you can email me there with your address if you don't want it to go in the clear and I will write back with the stuff you said to send over. Thanks!
 
Old 01-28-2003, 09:11 AM   #10
Infinity
Member
 
Registered: Sep 2001
Location: USA
Distribution: Fedora 10, Nokia N800 OS2008
Posts: 56

Rep: Reputation: 15
you may also use dyndns.org

You might also want to use dyndns.org. They have a variety of domains to choose from when picking a temporary domain, and their lifetime domain forwarding for your full domain is reasonable for a flat fee.

That's what I use for my site.
 
Old 01-28-2003, 01:15 PM   #11
Viper_iii
LQ Newbie
 
Registered: Jan 2003
Posts: 11

Rep: Reputation: 0
dyns.cx

I don't know what their deal is but FREE they are...

also It says fully updated from my winboxes using directupdate...

from there I just configure my Nat Forwarding to which box I wan controlled ... like VNC and play with display ports to get all my nvc's throught the wall.. Red Hat; windows; and what ever else I need like Web server FTP.. and more!!
 
Old 01-31-2003, 11:35 PM   #12
eggmcmuffin
LQ Newbie
 
Registered: Jan 2003
Distribution: red hat 8 today
Posts: 6

Rep: Reputation: 0
You might run into a problem with your isp when you get that webserver set up. Many of them don't allow webservers, so if you get much traffic they may notice and cut you off.
 
Old 01-31-2003, 11:38 PM   #13
Viper_iii
LQ Newbie
 
Registered: Jan 2003
Posts: 11

Rep: Reputation: 0
Haven't had any problems yet on my Win2k box..and everyonce and awhile I drive some traffic my way via FTP and http...

but not bad... so they've never cut it off...

Plus I know the ISP admin for our local RR here...
 
Old 01-31-2003, 11:41 PM   #14
eggmcmuffin
LQ Newbie
 
Registered: Jan 2003
Distribution: red hat 8 today
Posts: 6

Rep: Reputation: 0
Cool. Maybe I will see if I can set up Apachee and try it myself.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what linux distribution should I use to setup an Apache web server ( post #1) stteng Fedora 23 04-04-2005 12:27 AM
what linux distribution should I use to setup an Apache web server stteng Linux - Distributions 10 04-03-2005 07:04 PM
Linux Newbie here! Apache Setup Question mtbiker Linux - Software 4 07-21-2004 05:16 PM
Newbie Linux/Apache/SSL/MySQL/PHP Instalation Dilema rojow Linux - Software 12 10-24-2003 04:48 AM
Newbie wanna setup up a linux network on existing home network... marvc Linux - Networking 3 03-19-2003 09:02 PM


All times are GMT -5. The time now is 11:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration