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'm runnig FC4 on a AMD machine with apache as HTTP server.
I've got apache server up and running(at least as far as I know) and I've forwrded my 8080(also tried 81 to 85) port to my server box since my port 80 is blocked by my ISP.
The httpd seems to be starting without a glitch and I can ping into my box, from the box itself, as follows from my own machine:
PING 211.28.105.173 (211.28.105.173) 56(84) bytes of data.
64 bytes from 211.28.105.173: icmp_seq=0 ttl=64 time=0.720 ms
64 bytes from 211.28.105.173: icmp_seq=1 ttl=64 time=0.704 ms
64 bytes from 211.28.105.173: icmp_seq=2 ttl=64 time=0.675 ms
64 bytes from 211.28.105.173: icmp_seq=3 ttl=64 time=0.680 ms
64 bytes from 211.28.105.173: icmp_seq=4 ttl=64 time=0.670 ms
But when I ping from a remote computer this is what I get:
PING phoenixenigma.homelinux.net (211.28.105.173) 56(84) bytes of data.
From ra-clay1.its.monash.edu.au (130.194.1.2) icmp_seq=0 Destination Port Unreachable
From ra-clay1.its.monash.edu.au (130.194.1.2) icmp_seq=0 Destination Port Unreachable
From ra-clay1.its.monash.edu.au (130.194.1.2) icmp_seq=0 Destination Port Unreachable
From ra-clay1.its.monash.edu.au (130.194.1.2) icmp_seq=0 Destination Port Unreachable
From ra-clay1.its.monash.edu.au (130.194.1.2) icmp_seq=0 Destination Port Unreachable
In the current world of firewalls-everywhere, there is little use using Ping as a diag. tool for an http problem. The protocols are so different, you can't determine anything useful.
Use a telnet client from elsewhere and telnet to port 80. "telnet foo.host.domain 80" in most un*x flavors. That will tell you if you get a connection (then try a "GET / HTTP/1.0(return)(return)" ), or you'll get a timeout.
Make sure you don't have a local firewall messing you up.
And finally your ISP *could* be running a stateful firewall that does not permit *any* connections *to* you, but does dynamically permit traffic coming back to you from some outbound connection you make...
The eqasiest way to see if apache is working properly is to take a browser and check it out.. On localhost first, and if it works there, then on a remote host. If you have no GUI access, use lynx or links.
In the current world of firewalls-everywhere, there is little use using Ping as a diag. tool for an http problem. The protocols are so different, you can't determine anything useful.
Use a telnet client from elsewhere and telnet to port 80. "telnet foo.host.domain 80" in most un*x flavors. That will tell you if you get a connection (then try a "GET / HTTP/1.0(return)(return)" ), or you'll get a timeout.
Make sure you don't have a local firewall messing you up.
And finally your ISP *could* be running a stateful firewall that does not permit *any* connections *to* you, but does dynamically permit traffic coming back to you from some outbound connection you make...
-c
This is what I got with my port set to 8080:
telnet www_dot_phoenixenigma.homelinux_dot_net 8080
Connecting To www_dot_phoenixenigma.homelinux_dot_net...Could not open connection to the
host, on port 8080: Connect failed
The eqasiest way to see if apache is working properly is to take a browser and check it out.. On localhost first, and if it works there, then on a remote host. If you have no GUI access, use lynx or links.
That's interesting, because I can't even see anything from my own machine but I can successfully ping in.
So, it could be that apache for some reason not working.
um... dumb question, but did you configure your httpd.conf to listen on port 8080? And who set up your domain name? You just can't put any old domain name in your httpd.conf and expect it to work.
Anyhoo, would you be willing to post your httpd.conf file?
um... dumb question, but did you configure your httpd.conf to listen on port 8080?
OwOw!
Yes, as I mentioned in my previous post, I did change the listening port on the apache. I've even forwarded port 8080 on my router to point to my server box.
Quote:
Originally Posted by megaspaz
And who set up your domain name? You just can't put any old domain name in your httpd.conf and expect it to work.
I registered a domain name with dyndns_dot_com and as far as the ping concerns it detects my ip correctly.
I've tried connecting to my server with my ip only as well but still no hope.
Quote:
Originally Posted by megaspaz
Anyhoo, would you be willing to post your httpd.conf file?
Yes, I'm willing to do that after I get back home, now working.
question, what router are you using? 8080 is sometimes used for remote management of the router.
so you are able to get to your http server on the linux machine it is running on right?
go to the linux box running the server and type in http://locahost:8080 or whatever port you set it to. Also try by IP as well.
make sure you static you linux box with the IP you are pointing the ports to on your router.
also, if you are trying to access the linux box that is running apach from another internal machine to your lan then you may want to add it as a host to the host file, esp in a windows machine or just connect by ip.
This is what I got with my port set to 8080:
telnet www_dot_phoenixenigma.homelinux_dot_net 8080
Connecting To www_dot_phoenixenigma.homelinux_dot_net...Could not open connection to the
host, on port 8080: Connect failed
Not so sure that even it goes through.
The question I have here is who is running your dns and does it work? Do you know for sure httpd is running? Do a ps aux |grep httpd and you should get something like this.
If not then check your syslog and see what is keeping httpd from loading. if it loads, try this and it should load the page from the console. lynx localhost:8080 or links localhost:8080 (which ever you have install). If that works, then I would say you have a router problem and not a httpd.conf problem
1- I changed the system-config-services to start the httpd when booting and now is working, probably there was something wrong when I started the httpd manually.
2- I changed the firewall rules to allow http
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.