Linux - SoftwareThis 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.
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.
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
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.
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?
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.
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.
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.
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!
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:400
Modem IP Address 192.168.0.1
I am not sure if this helps. Do I need to configure anything here?
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.
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!
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.