LinuxQuestions.org
Visit Jeremy's Blog.
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-22-2012, 06:52 PM   #1
TheWave
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 192.168.1.112 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
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

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

Code:
ServerName 192.168.1.112:80
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
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,342
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
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
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 893

Rep: Reputation: 119Reputation: 119
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
TheWave
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
 
  


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
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

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

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