LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-25-2003, 02:05 PM   #1
geertm
LQ Newbie
 
Registered: Mar 2003
Location: Belgium
Posts: 13

Rep: Reputation: 0
Intranet - apache - samba


Hello all of You,

I'm a very newby on linux (sorry if I make mistakes in my englisch, but I'm a dutch boy)

I installed Redhat 8 0, Samba, and Apache on my server at work.
I've installed an intranet at work, everything works fine, only from one computer, if i want to connect from a second one with the same user, i can't connect with my homepage. (internal server error 500)
If a try to connect using windows explorer, everthing goes wright to open index.htm on my website (I see the shared folders, can open them, can connect them, ...). So I don't think it's a problem of Samba, but Apache won't let me in. In the error_log files I can't find anything. I find the IP adres from the PC from which I can connect but from the other PC's there is nothing to find, not even an attempt to connect to that server.

Has anyone an idee what the problem can be?

Thanks for the replay!!

Geert

Last edited by geertm; 03-26-2003 at 01:22 PM.
 
Old 03-25-2003, 02:41 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
The 500 error is generated by the server so you must be establishing a connection. What happens when you telnet to the web server (port 80)
telnet yourhost 80

If you connect (you won't see anything unless you turn on local echo) type:
"HEAD / HTTP/1.0"

no " followed by 2 carrige returns.

This should prove that your web server is running

For me it returns:
Code:
HTTP/1.1 200 OK
Date: Tue, 25 Mar 2003 20:24:15 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Last-Modified: Mon, 07 Oct 2002 20:55:50 GMT
ETag: "8025-155-82266180"
Accept-Ranges: bytes
Content-Length: 341
Connection: close
Content-Type: text/html; charset=ISO-8859-1
 
Old 03-26-2003, 12:26 AM   #3
geertm
LQ Newbie
 
Registered: Mar 2003
Location: Belgium
Posts: 13

Original Poster
Rep: Reputation: 0
David,

Thanks for your reply.

When I telnet to that server from a Win2000 PC I got an empty dos-box. There is no reaction on the command HEAD /HTTP/1.0

When I run that command on the server I got the answer
404 File '/HTTP/1.0' does not exist'

When I look at the processes on that server (ps -ef | grep http)
there is 1 proces for root (/usr/sbin/httpd) and 8 processes for the user apache.

I think my webserver is running because I can access my homepage from 1 PC.

Geert
 
Old 03-26-2003, 12:58 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I think the server is running too from what you have said.

The number of processes look normal - apache has one process run as root which spawns child processes run as apache.

Do you have any firewalling rules on the server?
Running this should remove any so you see if it is at fault:
ipchains -L
iptables -L

How are you accessing it? With an ip address or DNS? Is it the same on both machines?

Have you tried clearing the cache on the machine it does work on incase your local computer is saving the page and it is not infact gettign them from the server?
 
Old 03-26-2003, 01:20 PM   #5
geertm
LQ Newbie
 
Registered: Mar 2003
Location: Belgium
Posts: 13

Original Poster
Rep: Reputation: 0
David,

Thanks again for your replay !!

Like I said, I'm a newby on linux. I will search it out tomorrow morning (I'm at home now) if there are firewall rules on the server.
How can I clean the cache on a PC? The IP adress for my server is 200.0.1.167 and in my webbrowser I enter that IP adress to acces my homepage. That's the only way I can access my homepage (just from 1 PC). If I try this from an other PC, I have an error "internal server error 500". DNS isn't running. I can access that linux server by windows explorer (I think there are no network problems and samba lets me in).

I will give you tomorrow morning the answer for the test of IPCHAINS and IPTABLES.

(sorry for my bad Englisch, but that is the tird language for me)

Thanks for the time and interests!!

Many greatings,
Geert
 
Old 03-26-2003, 01:30 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
To clear you local cache (a local store of web pages used to speed up browsing - ie your browser doesn't need to download the files each time):
If you are using Internet explorer (do not look at your site while you do this):
Tools -> Internet Options -> Delete files
With Mozilla:
Edit -> Preferences -> Advanced -> Cache -> Clear Cache

I don't know what browser you are using but most will have similar options.

Can you access the web page from the linux box it is running on?
 
Old 03-26-2003, 01:41 PM   #7
geertm
LQ Newbie
 
Registered: Mar 2003
Location: Belgium
Posts: 13

Original Poster
Rep: Reputation: 0
David,

Like I said, I'm at home now. Tomorrow morging I will test it out.
I will give you the answers tomorrow when I'm at work. It's fantastic that someone like you will help a newbee like me. Thanks, thanks and one more thanks !!

If this is linux, (help from a unknow person, just like that), I am deeply sorry that I don't know linux earlier.

Thanks for the replay's David!

Geert

Last edited by geertm; 03-26-2003 at 01:45 PM.
 
Old 03-27-2003, 07:13 AM   #8
geertm
LQ Newbie
 
Registered: Mar 2003
Location: Belgium
Posts: 13

Original Poster
Rep: Reputation: 0
David,

I have cleared the cache and run ipchains -L (gives 'command not found') and iptables -L. The problem stays the same, no access to the homepage.

Geert
 
Old 03-27-2003, 01:30 PM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Did you get any output from from iptables -L?
 
Old 03-28-2003, 12:29 AM   #10
geertm
LQ Newbie
 
Registered: Mar 2003
Location: Belgium
Posts: 13

Original Poster
Rep: Reputation: 0
David,

The output from iptables -L is:

------------------------------------------------------------------
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUT all -- anywhere anywhere

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain RH-Lokkit-0-50-INPUT (1 references)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:http flags:SYN,RST,ACK/SYN
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp flags:SYN,RST,ACK/SYN
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh flags:SYN,RST,ACK/SYN
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp flags:SYN,RST,ACK/SYN
ACCEPT tcp -- anywhere anywhere tcp dpt:telnet flags:SYN,RST,ACK/SYN
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
REJECT tcp -- anywhere anywhere tcp flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT udp -- anywhere anywhere udp reject-with icmp-port-unreachable
------------------------------------------------------

Greatings,

Geert
 
Old 03-28-2003, 12:22 PM   #11
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I've not done a lot of work with iptables but it looks OK to me.

You could try running "iptables -F" to clear the firewall (sorry I said -L in a earlier post - that only lists the current settings)
 
Old 03-31-2003, 12:42 AM   #12
geertm
LQ Newbie
 
Registered: Mar 2003
Location: Belgium
Posts: 13

Original Poster
Rep: Reputation: 0
David,

I have already disabled the firewall (using lokkit - no firewall) but the result is the same. Still no access.

Greatings,
Geert
 
Old 04-03-2003, 04:17 AM   #13
geertm
LQ Newbie
 
Registered: Mar 2003
Location: Belgium
Posts: 13

Original Poster
Rep: Reputation: 0
Hello,

Is there someone with other idea's?

Please help !!

Thanks,
Geert
 
Old 04-03-2003, 09:20 AM   #14
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
Your iptables output looks good,
ACCEPT tcp -- anywhere anywhere tcp dpt:http flags:SYN,RST,ACK/SYN

should be letting machines access your page.

What does your /etc/hosts file look like? Apache might be getting confused by what interface that it should be listening on.
 
Old 04-04-2003, 01:29 AM   #15
geertm
LQ Newbie
 
Registered: Mar 2003
Location: Belgium
Posts: 13

Original Poster
Rep: Reputation: 0
Bentz,

My hosts file look like this:
-------------------------------------------------------------------------
# Do not remove the following line, or various programs
# that require network functionality will fail
200.0.1.167 linux linux
127.0.0.1 localhost.localdomain localhost
-------------------------------------------------------------------------
The hosts file on the Windows Computers also contains
the IP adres of the Linux Computer.

Thanks for the replay !

Geert
 
  


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
creating an intranet using apache Snerkel Linux - Software 8 11-09-2004 10:44 PM
Apache doesn't like internet connections, allows intranet Eyaw_Nayr Linux - Networking 3 08-24-2004 07:32 AM
Apache doesn't like internet connections, allows intranet Eyaw_Nayr Linux - Software 1 08-20-2004 05:17 PM
Apache virtual hosts for intranet and external site tawalker Linux - Software 12 06-25-2004 11:01 AM
Apache Intranet Configuration Problem ericleunghk Red Hat 0 05-16-2004 05:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:17 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
Open Source Consulting | Domain Registration