LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-28-2012, 03:12 AM   #1
bogzab
Member
 
Registered: Mar 2006
Location: Dyserth, Wales
Distribution: Slackware 13.37, Slackware 14.0
Posts: 260

Rep: Reputation: 31
Apache Connection time-out problems


My first steps in setting up an apache server are partially successful - I can get a response on the host PC by asking for the page : http://localhost. However when I try and get to the same page from another PC on my LAN, using its IP LAN address I get a connection timeout. Konqueror reports "Although contact was made with the server, a response was not received within the amount of time allocated for the request".

I have set up the apache server according to the HOWTO setup apache, php and mysql in Slackware docs. All the steps there work fine and checkout - but they are confined to testing on localhost.

I can contact the server PC from other PCs on the LAN by ping and by ftp on port 22. There is currently no firewall set up on the server, although a minimal firewall is active on the LAN router.

I tried configuring the apache server to listen on port 8000 instead of 80. Again this worked fine in local mode getting http://localhost:8000 but fails from another PC on the LAN if I ask for http://<server ip address>:8000.

Something obvious I am missing?
 
Old 11-28-2012, 04:22 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,576

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
You might want to check the apache logs first to see if there's a request from that client
If not, the problem might be the network configuration
 
Old 11-28-2012, 05:22 AM   #3
bogzab
Member
 
Registered: Mar 2006
Location: Dyserth, Wales
Distribution: Slackware 13.37, Slackware 14.0
Posts: 260

Original Poster
Rep: Reputation: 31
httpd access_log shows only the local host (127.0.01) access requests. So my problem must be in getting the request to the server rather than with server config. Thanks for the insight. Unfortunately I guess there could be a wide range of places to look!
 
Old 11-28-2012, 10:23 AM   #4
bogzab
Member
 
Registered: Mar 2006
Location: Dyserth, Wales
Distribution: Slackware 13.37, Slackware 14.0
Posts: 260

Original Poster
Rep: Reputation: 31
Solved. I feel foolish. There **was** a firewall enabled on the server. I had tried to test whether this was the case by running
Quote:
ps x | grep iptables
but I now realise that this is a poor diagnostic. I had a script rc.firewall in /etc/rc.d which was executable and had installed a firewall. I am happy to see that it is effective, although annoyed with myself that I spent all morning looking for firewall settings on my router when I should have checked out the server better.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Connection Destroy Time with Net Filter Connection Tracking Washington Ratso Linux - Networking 3 05-15-2011 02:51 PM
Problems setting time and time zone in RH Linux am_mitra Linux - Newbie 1 12-03-2008 08:09 PM
Time out in Connection established state if no Data flows on that connection asurya Linux - Networking 2 04-10-2005 03:54 PM
Apache virtualhost problems, apache install problems nyroc Linux - Software 2 06-09-2003 11:16 PM
Mysql/Apache Connection problems... amish_geek Linux - Software 2 02-12-2003 10:48 AM


All times are GMT -5. The time now is 01:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration