Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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?
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)
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.