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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
04-07-2006, 02:31 AM
|
#1
|
Member
Registered: Apr 2006
Posts: 170
Rep:
|
Fedora Core 5 (web server)
Hello,
I am trying to configure web server and got a problem.
I followed these direction: stanton-finley.net (see Web Server for FC5)
I've got my domain name registered and mapped it with dyndns.com
I went through the manual but I get this error when I try to access my url: SERVER NOT FOUND
when i type //localhost it displays tomcat home page
I use SBC PAC BELL DSL with dynamic IP address
What have I done wrong?
Thanks!
|
|
|
04-07-2006, 03:24 AM
|
#2
|
Senior Member
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679
Rep:
|
Can you access other services on the machine, say SSH? Are you able to ping your DNS name? Some DDNS services require a 24-hour period to settle and be accessible (I have a DDNS web server too and is accessible through the name, on Fedora, by the way). You may need to open the ports in your firewall and/or set the necessary policies in SELinux.
|
|
|
04-07-2006, 12:52 PM
|
#3
|
Member
Registered: Apr 2006
Posts: 170
Original Poster
Rep:
|
Hello,
Thanks for the reply.
How can I check if I can access SSH?
How do I ping my DNS? (ping XXX?)
I set up dyndns a while ago so there should not be a problem with it.
How can I open ports?
Thanks.
|
|
|
04-07-2006, 03:10 PM
|
#4
|
Senior Member
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679
Rep:
|
Check the ports with the system-config-securitylevel program (or access Dsktop-->Administration-->Security level and firewall, you should have the firewall up, see that WWW (HTTP) and secure WWW (HTTPS) are enabled (check SSH too if you want). You should be able to ping your domain name, like `ping penguin.homeip.net` or whatever you named your machine in dyndns, I gather you are running a deamon to keep your current IP updated on the dyndns database.
|
|
|
04-08-2006, 06:11 PM
|
#5
|
Member
Registered: Apr 2006
Posts: 170
Original Poster
Rep:
|
Hello,
I just tried pining my domain name:
ping mydomain.homeip.net
This is what I get:
PING mydomain.homeip.net (71.142.66.78) 56(84) bytes of data.
--- mydomain.homeip.net ping statistics ---
35 packets transmitted, 0 received, 100% packet loss, time 34037ms
what's up with that?
Thanks!
|
|
|
04-08-2006, 11:14 PM
|
#6
|
Senior Member
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679
Rep:
|
That means taht your domain name can't be resolved, maybe due to IP changed? Have you updated your IP on the dyndns database? Is it the same as the one you currently have? That is about the only thing I can think of.
|
|
|
04-08-2006, 11:27 PM
|
#7
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
It looks like mydomain.homeip.net can be resolved (see the IP address in parenthesis in the ping results), but it can't be reached. Is that IP the correct one? Do you have a NAT router in front of your Web server? If so that may be the problem, since I know sometimes there are problems accessing sites on your home LAN (basically because you have to make a U-turn back to your own external IP address). Can you try accessing the site from somewhere outside your home LAN. If that works then you'll have to add the private IP of your Web server to /etc/hosts so it doesn't try to go to the outside world to fetch it.
|
|
|
04-09-2006, 02:55 AM
|
#8
|
Member
Registered: Apr 2006
Posts: 170
Original Poster
Rep:
|
Hello,
thanks for input. I tried accessing my site outlide and it did not work.
I have read that some people say that I have to open ports. Could this be a problem?
How can I open them?
The is the content of my /etc/hosts file (just in case):
___________________________________
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
67.172.236.37 myDomainName.homeip.net myDomainName
_______________________________________
What is NAT?
I followed these direction: stanton-finley.net (see Web Server for FC5)
What I got confused with this:
The walk through says: "Do this for runlevel 3 as well as for runlevel 5. Reboot your machine."
When I go to services it displays: Editing Runlevel: 5
How do I do it for Runlevel 3?
I've got many questiong here (first time trying to set up a web server)
Thanks for the input!
|
|
|
04-09-2006, 03:05 AM
|
#9
|
Member
Registered: Apr 2006
Posts: 170
Original Poster
Rep:
|
I just went to 192.168.0.1 and here is what I get:
IP Address 71.142.66.78
IP Gateway 151.164.184.89
DNS Servers 68.94.156.1 dnsr1.sbcglobal.net
206.13.28.12 dns1.snfcca.sbcglobal.net
Mode PPP on the modem (Public IP for LAN device)
Timeout Never
MAC Address 00:13:A3:18:40 0
Modem IP Address 192.168.0.1
I am not sure if this helps. Do I need to configure anything here?
Thanks!
|
|
|
04-09-2006, 03:25 AM
|
#10
|
Member
Registered: Apr 2006
Posts: 170
Original Poster
Rep:
|
Hello again,
I've got some progress.
I disconnected my wireless router and connected modem directly to my desktop.
Now, when I go to http://mydomain.homeip.net it displays apache home page.
I have got public_html folder set permissions and put a dummy html page into it but cannot see it:
Error messsage:
______________
Not Found
The requested URL /index.html was not found on this server.
Apache/2.2.0 (Fedora) Server at www.mydomain.homeip.net Port 80
______________
Apache home pages says:
You may now add content to the directory /var/www/html/. Note that until you do so, people visiting your website will see this page, and not your content.
I put a dummy page into it and was able to see (finally) it!!!
Path: http://mydomain.homeip.net/testPage.html (works!)
but if I put www in front of it it does not work Why?
Also, instructions that I followed say to create public_html folder in: /home/myname
Seems that it is wrong.
Can you comment on what's happening.
Thanks.
|
|
|
04-09-2006, 08:12 PM
|
#11
|
Member
Registered: Apr 2006
Posts: 170
Original Poster
Rep:
|
Any help on this?
Thanks
|
|
|
04-09-2006, 11:08 PM
|
#12
|
Member
Registered: Apr 2006
Posts: 170
Original Poster
Rep:
|
one more thing.
I can only access my server within LAN and can't outside.
Do I have to open ports?
Any docs out there how to do it for Siemens Spead Strem 4100 ( I have Yahoo SBC DSL)
Many thanks!
|
|
|
04-09-2006, 11:57 PM
|
#13
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
www is used with domain names, not subdomains. However, you can make them to work as they had www.
Runlevel is not a question. It only states that it will work in multiuser graphical mode and multiuser console mode too.
For public html to work, you must not be root. This should work for any other user by default. Read more in apache manual about userdir option.
Yes, you have to forward 80 port from your router to your computer.
Search google for docs. BTW, you should got them when you bought it.
|
|
|
04-10-2006, 12:37 AM
|
#14
|
Member
Registered: Apr 2006
Posts: 170
Original Poster
Rep:
|
Thanks, I got public_html working
but I can't find info on how to foward ports
What do you mean htat I shoul've gotten them when I bought it????
thanks
|
|
|
04-10-2006, 01:09 AM
|
#15
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
When you bought you router, documentation should have come with it. If you connect to the yahoo owned router, ask them for support.
|
|
|
All times are GMT -5. The time now is 01:10 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|