Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-22-2012, 06:52 PM   #1
LQ Newbie
Registered: Jan 2012
Posts: 2

Rep: Reputation: Disabled
Unhappy Acessing Apache webserver from internal network problem

Ok so i intsalled a lamp webserver on a computer running only linux. It does not have a domain associated with it and as far as i know, know firewall. its ubuntu 10.4 and it worked for a while until sometime today it began to stop. When i type the ip of the server into firefox on the same computer that the server is on i get no problems and the page says it works! But when i try to acess it from other computers on the same wifi network by typing as the url it cannot connect. Ive restarted apache to no avail. Any help would be greatly apreciated btw the servers name is srvme and typing that in also does not work. THanks!
Old 01-22-2012, 07:04 PM   #2
Senior Member
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 243Reputation: 243Reputation: 243
First, use server IP for ServerName directive value in httpd.conf

Can you ping the server IP from the clients ?

Last edited by Cedrik; 01-22-2012 at 07:07 PM.
Old 01-22-2012, 09:22 PM   #3
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 13,834
Blog Entries: 24

Rep: Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691Reputation: 3691
By default, Apache listens on Port 80. You can verify this by looking at the httpd.conf file.

If you aren't sure where it is, use locate httpd.conf to find it. Then you can use cat /[path to file]/httpd.conf | grep Listen to see the port without having to read the entire file.

(cat reads the contents of the file. The pipe "|" "pipes" or sends it to grep, which extracts the lines containing the word "Listen" [case sensitive] and displays them to the screen. It took me five years to understand the simple elegance of this.)

Also make sure that incoming Port 80 is open in your firewall.

If the ping doesn't work, check your ICMP settings.

Last edited by frankbell; 01-22-2012 at 09:27 PM.
Old 01-22-2012, 09:34 PM   #4
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 879

Rep: Reputation: 113Reputation: 113
Can you ping the server from the client?
Can the server ping the client?

If no to these questions could be a routing issue.
ping the router/default gateway.
If not
Power cycle router and check settings.

Is this a main host or virutalhost?

Selinux enabled?
if yes disable it and then test it. I once went through all kinds of trouble with a server come to find out it was selinux preventing it.
Old 01-23-2012, 02:41 PM   #5
LQ Newbie
Registered: Jan 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
OK so i cannot ping the hostname (srvme) or th ip address but now i am able to connect to the server, I'm just worried that it'll stop working again like it did last time. I will run these tests and post another soon


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
Can't access webserver via ip in internal network YoJr Linux - Newbie 3 04-16-2008 11:23 PM
apache webserver - can see from internal but not external filpee Linux - Networking 5 03-20-2005 12:31 AM
Cannot access Apache webserver from internal network, but I can from outside... cj_thomas Linux - Networking 8 10-18-2004 01:18 AM
can't browse my webserver from internal network enzolabrador Linux - Networking 8 08-30-2004 12:27 PM
Seeing webserver from internal network NetAX Linux - Networking 2 07-09-2004 10:03 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration