LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-28-2008, 12:16 AM   #1
gankoji
Member
 
Registered: Nov 2007
Location: Southern California
Distribution: Slackware-13.0 x86_64, Slackware 12.2, slackware64-current
Posts: 225

Rep: Reputation: 35
Apache Issues


Well, I suppose I should title this "user issues not using Apache correctly," but I think you get the point. I've just recently installed and configged XAMPP on my rig and am trying to setup Apache to host a small site. After having everything setup, I can view the site at http://localhost/, but when i try to access it from another computer using my IP address, I can't see the pages. Perhaps this has something to do with my firewall settings in hosts.allow and hosts.deny? Or possibly my router/ISP (2WIRE wireless and SBC Yahoo/AT&T respectively) are just being difficult? I'd appreciate any info you guys have.
 
Old 01-28-2008, 03:46 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,532

Rep: Reputation: 132Reputation: 132
do you try to access the server from within a local network or via internet? If in a local network maybe your browser is using the default gateway to the router? Can you ping the ip?
 
Old 01-28-2008, 08:51 AM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Check the firewall rules on your machine

iptables -L
Is everything set to ACCEPT ?
if not, is there a rule to allow port 80 ?


is the listen directive set to localhost only ?
Quote:
The Listen directive specifies the port, and optionally the IP address, Apache2 should listen on. If the IP address is not specified, Apache2 will listen on all IP addresses assigned to the machine it runs on. The default value for the Listen directive is 80. Change this to 127.0.0.1:80 to cause Apache2 to listen only on your loopback interface so that it will not be available to the Internet, to (for example) 81 to change the port that it listens on, or leave it as is for normal operation.
Post the output of the iptables command if you are unsure..
 
Old 01-28-2008, 09:20 PM   #4
gankoji
Member
 
Registered: Nov 2007
Location: Southern California
Distribution: Slackware-13.0 x86_64, Slackware 12.2, slackware64-current
Posts: 225

Original Poster
Rep: Reputation: 35
well, iptables output this when i used iptables -L:

FATAL: Module ip_tables not found
iptables v1.3.8: can't initialize iptables table "filter": iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded

Apache is set to listen on 80

Unfortunately I don't know enough to decipher the above output, other than that maybe I'll have to recompile my kernel with iptable support? I'm currently running 2.6.21.5.
 
Old 01-29-2008, 03:07 AM   #5
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,532

Rep: Reputation: 132Reputation: 132
probably you didnt run it as root
sudo iptables -L
 
Old 01-29-2008, 08:16 PM   #6
gankoji
Member
 
Registered: Nov 2007
Location: Southern California
Distribution: Slackware-13.0 x86_64, Slackware 12.2, slackware64-current
Posts: 225

Original Poster
Rep: Reputation: 35
Nope, I definitely ran it as root the first time. Just to be sure, I tried running it again as root this time and it produced the same results as before :-P. What's insmod?
 
  


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
Apache issues IwantLINUX Linux - Server 1 11-19-2007 06:47 AM
Apache issues IwantLINUX Linux - Newbie 0 11-18-2007 01:31 AM
apache issues gravesb Linux - Software 6 08-08-2005 04:07 AM
Apache issues neeths *BSD 1 02-17-2005 01:55 AM
Apache 2.0.48 issues Malibyte Linux - Software 8 03-10-2004 05:54 PM


All times are GMT -5. The time now is 12:07 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration