LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-28-2005, 06:21 AM   #1
phoenixenigma
LQ Newbie
 
Registered: Dec 2005
Location: Australia/Melbourne
Distribution: Kubuntu Breezy 5.10
Posts: 23

Rep: Reputation: 15
problem with apache


Howdy

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

--- 211.28.105.173 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4003ms
rtt min/avg/max/mdev = 0.684/0.695/0.711/0.020 ms, pipe 2

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

--- phoenixenigma.homelinux.net ping statistics ---
0 packets transmitted, 0 received, +5 errors


I also tried many differnet ports but non worked, given that this is my 1st time setting up apache, could someone think what might be my problem.

thanks
 
Old 12-28-2005, 08:12 AM   #2
cconstantine
Member
 
Registered: Dec 2005
Distribution: RedHat, Ubuntu
Posts: 101

Rep: Reputation: 15
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
 
Old 12-28-2005, 08:46 AM   #3
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
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.
 
Old 12-28-2005, 08:25 PM   #4
phoenixenigma
LQ Newbie
 
Registered: Dec 2005
Location: Australia/Melbourne
Distribution: Kubuntu Breezy 5.10
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by cconstantine
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

Not so sure that even it goes through.
 
Old 12-28-2005, 08:27 PM   #5
phoenixenigma
LQ Newbie
 
Registered: Dec 2005
Location: Australia/Melbourne
Distribution: Kubuntu Breezy 5.10
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Artanicus
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.
 
Old 12-28-2005, 09:54 PM   #6
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
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?
 
Old 12-28-2005, 10:50 PM   #7
phoenixenigma
LQ Newbie
 
Registered: Dec 2005
Location: Australia/Melbourne
Distribution: Kubuntu Breezy 5.10
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by megaspaz
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.

Cheers
 
Old 12-28-2005, 11:24 PM   #8
nepcw
Member
 
Registered: Mar 2004
Posts: 81

Rep: Reputation: 15
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.

Can you SSH to the box from outside? FTP?
 
Old 12-28-2005, 11:38 PM   #9
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
Another question... How long ago was your domain registration done? Usually it takes about 24-48 hours for a domain name to fully propagate.
 
Old 12-29-2005, 12:02 AM   #10
sherman22
LQ Newbie
 
Registered: Mar 2005
Location: Centerville, Iowa
Distribution: Slackware
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by phoenixenigma
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.

Code:
(smr@job:~)-(23:46:32)$ ps aux |grep httpd
root      2999  0.0  0.1  79076    72 ?        Ss   Nov27   0:05 /usr/sbin/httpd
nobody    3007  0.0  0.4  83420   264 ?        S    Nov27   6:13 /usr/sbin/httpd
nobody    3008  0.0  0.7  85584   400 ?        S    Nov27   6:12 /usr/sbin/httpd
nobody    3009  0.0  1.1  83780   612 ?        S    Nov27   6:00 /usr/sbin/httpd
nobody    3010  0.0  0.8  85576   460 ?        S    Nov27   6:06 /usr/sbin/httpd
nobody    3011  0.0  0.3  83672   168 ?        S    Nov27   6:23 /usr/sbin/httpd
nobody    3285  0.0  0.9  85456   516 ?        S    Nov27   6:00 /usr/sbin/httpd
nobody    4151  0.0  0.3  85036   164 ?        S    Nov27   5:53 /usr/sbin/httpd
nobody    1104  0.0  0.9  85384   516 ?        S    Nov28   5:31 /usr/sbin/httpd
nobody   12566  0.0  8.5  83888  4612 ?        S    Nov28   5:44 /usr/sbin/httpd
nobody    2070  0.0  0.5  84248   276 ?        S    Dec10   2:30 /usr/sbin/httpd
smr      22364  0.0  1.1   1848   620 pts/1    S+   23:48   0:00 grep httpd
(smr@job:~)-(23:48:00)$
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
 
Old 12-29-2005, 05:11 AM   #11
phoenixenigma
LQ Newbie
 
Registered: Dec 2005
Location: Australia/Melbourne
Distribution: Kubuntu Breezy 5.10
Posts: 23

Original Poster
Rep: Reputation: 15
Never mind everyone, I got it working.

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

Thanks and wait my for future questions .

Cheers
 
  


Reply



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
Strange apache trailing / problem - Slack-current, apache 1.3.33 vamp Linux - Networking 1 01-30-2005 07:28 PM
Problem with apache ktk *BSD 1 10-10-2004 08:54 PM
RH9: PHP session problem (or Apache problem) fengcn Red Hat 0 12-01-2003 06:32 PM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:11 AM.

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