LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-02-2009, 02:01 PM   #1
scotthill
LQ Newbie
 
Registered: Jan 2009
Posts: 25

Rep: Reputation: 15
Apache WEB server is a no go **** Fedora 9 ****


The network is working OK and I can ping my Fedora box but there is no port 80 shown as open.

Upon boot the Apache server complains that it can not bind to the IP address. I has a lot of other text but it is only up for 2 seconds and I haven't been able to read it. I think I need to read that message.

Q: Is there a way to stop the boot sequence on Fedora 9 so I can read the Apache boot message? I've looked all over the hard drive for a copy of the boot log but I haven't found it.



eth0 Link encap:Ethernet HWaddr 00:48:54:8F:16:B8
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::248:54ff:fe8f:16b8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1057 errors:0 dropped:0 overruns:0 frame:0
TX packets:1132 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:845247 (825.4 KiB) TX bytes:219758 (214.6 KiB)
Interrupt:17 Base address:0xe000

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 eth0
default dslrouter 0.0.0.0 UG 0 0 0 eth0


Q: The gateway is at 192.168.1.1 so why does the route map show 192.168.1.0 ? What is 192.168.1.0 anyway?

Q: Does the IP address of the Apache Server need to be the same or different than the IP address of the Computer. I've tried both ways and Apache can't bind to whatever IP address I ask it to use.

A couple more pieces of information. Although the network is working (I can browse and print over the network) there are a few anomalies ever since I set a fixed IP address.
1) At the top of the Gnome desktop there is a small network icon. Putting a mouse on that reports that there is no network connection.
2) When I start Mozilla Firefox it always comes up in the Work Offline setting. Unchecking the work offline box allows for perfect browsing.
3) The System->Admin->Add/Remove program can search the web for catalogues successfully but if you ask it to add one it reports back that there is no network connection.

Last edited by scotthill; 01-02-2009 at 02:12 PM.
 
Old 01-02-2009, 02:28 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ok, 1 question per thread in future... much less confusing.


1 - look in /var/log/httpd/error_log or /var/log/apache/error_log (or very similar)

2 - that's your local network, your gateway is clearly listed as "dslrouter" from your local dns server, probably running on the router.

3 - at your level, yes. but normally you wouldn't bother specifiying an IP address, you'd just bind to * by default, which would use all locally assigned addresses. you don't explicitly bind to an ip not already in use by the box, that makes no sense.
 
Old 01-02-2009, 03:17 PM   #3
scotthill
LQ Newbie
 
Registered: Jan 2009
Posts: 25

Original Poster
Rep: Reputation: 15
Quote: acid_kewpie;3394911]ok, 1 question per thread in future... much less confusing.

From Bob @ ScottHill in blue


1 - look in /var/log/httpd/error_log (Empty Directory) or /var/log/apache/error_log (or very similar) No directory named similarly. I've spent quite a bit of time looking for a boot log file in the /etc/ and /var/ directories and their subs and I haven't found it yet

2 - that's your local network, your gateway is clearly listed as "dslrouter" from your local dns server, probably running on the router. Yes the Westell DSL Modem is the gateway and the router. It's IP address is 192.168.1.1

3 - at your level, yes. but normally you wouldn't bother specifiying an IP address, you'd just bind to * by default, which would use all locally assigned addresses. you don't explicitly bind to an ip not already in use by the box, that makes no sense. I'm sorry I got lost here. So I take it that the Apache server should bind to the same IP address as the box. No matter I've tried it both ways with no difference. I have to set up port forwarding in the router so the Apache Server has to have a static IP Address for the router to forward to --- as far as I know.

Last edited by scotthill; 01-02-2009 at 03:21 PM.
 
Old 01-02-2009, 03:26 PM   #4
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
When you did your install did you turn on selinux. If so then you might want to check and see if it is blocking port 80 access. Also try a
Code:
netstat -a |grep 80
or just drop the pipe and check to see if it is listening on 80. to view the the output of the kernel at boot up just type in

Code:
dmesg

// or dmesg >> kernel.log
 
Old 01-02-2009, 03:53 PM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
I would do netstat -lanp | grep :80 to see what process, if any, is bound to port 80.....


apache2ctl start should manually start the apache web server if it's not running.. do that in a shell and you should be able to see any error messages. you can also use apache2ctl to verify your config is good, or what the current server status is..
Quote:
it-etch:/~# apache2ctl
Usage: /usr/sbin/apache2ctl start|stop|restart|graceful|graceful-stop|configtest|status|fullstatus


iprtables -L - is the local firewall on the Fedora box, blocking the web server from being accessed from other machines ?
 
  


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
Fedora Server> Apache Web> World Press ---- Configuration Troubles kreside Linux - Software 1 11-02-2008 11:32 AM
apache web server wolgar Linux - Newbie 3 09-21-2004 03:23 PM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 12:03 PM
web server apache sameermanagoli Linux - Software 15 07-07-2003 06:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:17 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