User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Linux Servers and Apache section within the Tech Talk category of DaniWeb, a massive community of 456,583 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,596 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Linux Servers and Apache advertiser: Programming Forums
Views: 3988 | Replies: 21
Reply
Join Date: Jul 2005
Location: Texas
Posts: 4,834
Reputation: joshSCH is on a distinguished road 
Rep Power: 0
Solved Threads: 9
joshSCH's Avatar
joshSCH joshSCH is offline Offline
Banned

Re: First apache webpage

  #11  
Nov 2nd, 2007
Okay sorry, the real error message is:

root@server:/home/httpd/bin# apachectl start
(99)Cannot assign requested address: make_sock: could not bind to address 192.168.0.1:80
no listening sockets available, shutting down
Unable to open logs

And yes, I have googled and researched this problem myself before coming to the forums. Everyone else seemed to solve the problem by listening to any ip address at the specific port. This does not work for me..

192.168.0.1 is the address of my router.. however, it is properly configured to forward all http (port 80) traffic to the server. The server's ip on the LAN is 192.168.0.101.. Thanks for any further suggestions.
Reply With Quote  
Join Date: Jul 2005
Location: Texas
Posts: 4,834
Reputation: joshSCH is on a distinguished road 
Rep Power: 0
Solved Threads: 9
joshSCH's Avatar
joshSCH joshSCH is offline Offline
Banned

Re: First apache webpage

  #12  
Nov 2nd, 2007
Okay, I resolved that issue (apparently I must have installed apache in two different locations or something.. the apache demean in /home/httpd/bin was actually executing a httpd.conf file in /etc/httpd for whatever reason... (I was editing the httpd.conf file in /home/httpd/conf) =(

Now I am able to actually start the httpd, HOWEVER I believe it is only accessible from my LAN. When I ping 'schulte.homelinux.com' from my lan it correctly identifies the ip, and has 0% packet loss. When I ping from outside the lan, then schulte.homelinux.com correctly resolves the correct ip, but the ping fails with 100% packet loss.
Last edited by joshSCH : Nov 2nd, 2007 at 12:54 am.
Reply With Quote  
Join Date: Jan 2007
Location: Israel
Posts: 1,636
Reputation: DimaYasny will become famous soon enough DimaYasny will become famous soon enough 
Rep Power: 6
Solved Threads: 72
Featured Poster
DimaYasny DimaYasny is offline Offline
Posting Virtuoso

Re: First apache webpage

  #13  
Nov 2nd, 2007
ping is ICMP and has nothing to do with http and port 80. try from outside to "telnet your.server.wan.ip 80"

anyhow, can you access the webpage from within the LAN? we have to locate the problem to either the router, or the httpd server
Real stupidity always beats Artificial Intelligence. (Terry Pratchett)

BA BizMg, MCSE, DCSE, Linux+, Network+
Reply With Quote  
Join Date: Jul 2005
Location: Texas
Posts: 4,834
Reputation: joshSCH is on a distinguished road 
Rep Power: 0
Solved Threads: 9
joshSCH's Avatar
joshSCH joshSCH is offline Offline
Banned

Re: First apache webpage

  #14  
Nov 2nd, 2007
Okay, here are the results from accessing the webpage from the LAN:

Typing schulte.homelinux.com fails
Typing the public ip address fails

However, typing the private ip address of the server does pull up the "It Works!" apache default webpage.

so... does this mean there is something wrong with my router forwarding traffic to the http server? Or perhaps my isp? Maybe there is something I have done wrong in the configuration files..
Last edited by joshSCH : Nov 2nd, 2007 at 6:35 pm.
Reply With Quote  
Join Date: Jan 2007
Location: Israel
Posts: 1,636
Reputation: DimaYasny will become famous soon enough DimaYasny will become famous soon enough 
Rep Power: 6
Solved Threads: 72
Featured Poster
DimaYasny DimaYasny is offline Offline
Posting Virtuoso

Re: First apache webpage

  #15  
Nov 2nd, 2007
well, if you can access the http server, you must have misconfigured port forwarding on your router. try to put the server's IP in the DMZ address in the router and see if that helps
Real stupidity always beats Artificial Intelligence. (Terry Pratchett)

BA BizMg, MCSE, DCSE, Linux+, Network+
Reply With Quote  
Join Date: Jul 2005
Location: Texas
Posts: 4,834
Reputation: joshSCH is on a distinguished road 
Rep Power: 0
Solved Threads: 9
joshSCH's Avatar
joshSCH joshSCH is offline Offline
Banned

Re: First apache webpage

  #16  
Nov 2nd, 2007
I have port forwarding enabled property.. it's configured the same way for my ssh and irc servers (just with a different port).

The DMZ doesn't work either
Reply With Quote  
Join Date: Jul 2005
Location: Texas
Posts: 4,834
Reputation: joshSCH is on a distinguished road 
Rep Power: 0
Solved Threads: 9
joshSCH's Avatar
joshSCH joshSCH is offline Offline
Banned

Re: First apache webpage

  #17  
Nov 4th, 2007
I am certain that it has nothing to do with my router.. is there any other config file or something that would be stopping traffic on port 80?

I edited my hosts file to contain the server's private ip followed by 'schulte.homelinux.com'.
Reply With Quote  
Join Date: Jan 2007
Location: Israel
Posts: 1,636
Reputation: DimaYasny will become famous soon enough DimaYasny will become famous soon enough 
Rep Power: 6
Solved Threads: 72
Featured Poster
DimaYasny DimaYasny is offline Offline
Posting Virtuoso

Re: First apache webpage

  #18  
Nov 4th, 2007
as I said - if you can reach the webpage from the lan, but cannot reach it from outside - something is wrong with port forwarding
Real stupidity always beats Artificial Intelligence. (Terry Pratchett)

BA BizMg, MCSE, DCSE, Linux+, Network+
Reply With Quote  
Join Date: Apr 2005
Location: Dundee, Scotland
Posts: 12,883
Reputation: jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough 
Rep Power: 32
Solved Threads: 305
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: First apache webpage

  #19  
Nov 4th, 2007
you might not have enough memory?

I know that MySQL says "cannot create socket" if you have under 256ram, and it intermittently refuses connections. Maybe the same thinking applies to apache?
TRY MY SUGGESTIONS AT YOUR OWN RISK

Master of puppets Im pulling your strings, blinded by me, you cant see a thing. Master! Master!
Reply With Quote  
Join Date: Jul 2005
Location: Texas
Posts: 4,834
Reputation: joshSCH is on a distinguished road 
Rep Power: 0
Solved Threads: 9
joshSCH's Avatar
joshSCH joshSCH is offline Offline
Banned

Re: First apache webpage

  #20  
Nov 4th, 2007
Really? I only have 96MB of ram... and I know for a fact that port forwarding is properly configured..
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Linux Servers and Apache Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Linux Servers and Apache Forum

All times are GMT -4. The time now is 6:27 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC