LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-06-2012, 07:03 AM   #1
psoheil
LQ Newbie
 
Registered: Mar 2010
Location: Chicago
Distribution: Redhat, CentOS, Ubuntu, Fedora
Posts: 22

Rep: Reputation: 0
Question Unable to Access Server from Windows Network


Hello All,

I have a brand new CentOS 6.2 Web Server on which Apache is up and running and I can access it through localhost, loop back ip and local IP when I am on the Server itself, but I am not able to access it using local network IP from any other workstation on the windows Network. I did configure static IP, network Mask, Gateway and DNS during installation on the same screen where you name the Server.

Does anyone have any idea what may be the problem and how to fix it?

Thanks
Pete
 
Old 01-06-2012, 07:25 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6
Posts: 1,448

Rep: Reputation: 438Reputation: 438Reputation: 438Reputation: 438Reputation: 438
You don't say how you're trying to "access" your server, http?, telnet?, ssh?, ftp?, sftp? etc. etc. etc.

Meet us half way and give us a clue.

Also include what diagnostics etc. you're already tried.
 
Old 01-06-2012, 08:10 AM   #3
psoheil
LQ Newbie
 
Registered: Mar 2010
Location: Chicago
Distribution: Redhat, CentOS, Ubuntu, Fedora
Posts: 22

Original Poster
Rep: Reputation: 0
I should have been more specific, I am NOT able to access using HTTP and FTP but I am able to access it using SSH. Please let me know what type of diagnostic info I need to provide.

Pete
 
Old 01-06-2012, 08:13 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6
Posts: 1,448

Rep: Reputation: 438Reputation: 438Reputation: 438Reputation: 438Reputation: 438
For ftp, what ftp server are you using? Check any configs for that daemon and look to see if there's any deny/allow in place.
For http, check /var/loh/httpd/error_log and see what results you get when accessing from a remote machine. Also check any firewall you have in place on the server and ensure that port 80 is open.

The fact that you can access with SSH is a good thing and shows that your network is working at least.
 
1 members found this post helpful.
Old 01-06-2012, 09:21 AM   #5
psoheil
LQ Newbie
 
Registered: Mar 2010
Location: Chicago
Distribution: Redhat, CentOS, Ubuntu, Fedora
Posts: 22

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TenTenths View Post
For ftp, what ftp server are you using? Check any configs for that daemon and look to see if there's any deny/allow in place.
It is using vsftpd for FTP, which made me realize just now that I may have to use SFTP to access. I tried SFTP which now gives me ftp access to the server for all users.

Quote:
Originally Posted by TenTenths View Post
For http, check /var/loh/httpd/error_log and see what results you get when accessing from a remote machine. Also check any firewall you have in place on the server and ensure that port 80 is open.
Here is what I have in the error_log file. Not very helpful, because it only shows the access attempts I made from the local server, and doesn't show any access error from remote workstation:

Code:
[Thu Jan 05 05:38:53 2012] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0
[Thu Jan 05 05:38:53 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Jan 05 05:38:53 2012] [notice] Digest: generating secret for digest authentication ...
[Thu Jan 05 05:38:53 2012] [notice] Digest: done
[Thu Jan 05 05:38:53 2012] [warn] mod_wsgi: Compiled for Python/2.6.2.
[Thu Jan 05 05:38:53 2012] [warn] mod_wsgi: Runtime using Python/2.6.6.
[Thu Jan 05 05:38:53 2012] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips mod_wsgi/3.2 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Thu Jan 05 05:39:07 2012] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 05 05:39:07 2012] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Thu Jan 05 05:39:10 2012] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Thu Jan 05 05:39:25 2012] [error] [client 10.10.86.96] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 05 05:39:25 2012] [error] [client 10.10.86.96] File does not exist: /var/www/html/favicon.ico
[Thu Jan 05 05:39:28 2012] [error] [client 10.10.86.96] File does not exist: /var/www/html/favicon.ico
[Thu Jan 05 08:47:44 2012] [error] [client 10.10.86.96] File does not exist: /var/www/html/phpinfo.jphp
[Thu Jan 05 08:47:52 2012] [error] [client 10.10.86.96] PHP Warning:  phpinfo(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead in /var/www/html/phpinfo.php on line 3
Same goes for the access_log. It looks like requests from outside the server don't even get to the web server, since I don't see any windows requests and my remote workstation is windows:

Code:
127.0.0.1 - - [05/Jan/2012:05:39:07 -0600] "GET / HTTP/1.1" 403 5039 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
127.0.0.1 - - [05/Jan/2012:05:39:07 -0600] "GET /icons/apache_pb.gif HTTP/1.1" 200 2326 "http://127.0.0.1/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
127.0.0.1 - - [05/Jan/2012:05:39:07 -0600] "GET /icons/poweredby.png HTTP/1.1" 200 3956 "http://127.0.0.1/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
127.0.0.1 - - [05/Jan/2012:05:39:07 -0600] "GET /favicon.ico HTTP/1.1" 404 284 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
127.0.0.1 - - [05/Jan/2012:05:39:10 -0600] "GET /favicon.ico HTTP/1.1" 404 284 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
10.10.86.96 - - [05/Jan/2012:05:39:25 -0600] "GET / HTTP/1.1" 403 5039 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
10.10.86.96 - - [05/Jan/2012:05:39:25 -0600] "GET /icons/apache_pb.gif HTTP/1.1" 200 2326 "http://10.10.86.96/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
10.10.86.96 - - [05/Jan/2012:05:39:25 -0600] "GET /icons/poweredby.png HTTP/1.1" 200 3956 "http://10.10.86.96/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
10.10.86.96 - - [05/Jan/2012:05:39:25 -0600] "GET /favicon.ico HTTP/1.1" 404 286 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
10.10.86.96 - - [05/Jan/2012:05:39:28 -0600] "GET /favicon.ico HTTP/1.1" 404 286 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
10.10.86.96 - - [05/Jan/2012:08:45:24 -0600] "GET / HTTP/1.1" 200 106 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
10.10.86.96 - - [05/Jan/2012:08:47:44 -0600] "GET /phpinfo.jphp HTTP/1.1" 404 287 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
10.10.86.96 - - [05/Jan/2012:08:47:52 -0600] "GET /phpinfo.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2524 "http://10.10.86.96/phpinfo.php" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
10.10.86.96 - - [05/Jan/2012:08:47:52 -0600] "GET /phpinfo.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2146 "http://10.10.86.96/phpinfo.php" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
10.10.86.96 - - [05/Jan/2012:08:47:51 -0600] "GET /phpinfo.php HTTP/1.1" 200 52543 "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
10.10.86.96 - - [05/Jan/2012:08:54:32 -0600] "GET / HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 CentOS/3.6.24-3.el6.centos Firefox/3.6.24"
Your last suggestion is what made the whole thing work. I could have sworn I had the firewall disabled, but it looks like the firewall was turned on! I added an exception for "WWW (HTTP)" and "Secure WWW (HTTPS)" to the firewall and it started working. Thank you very much for your help!

Pete
 
Old 01-06-2012, 09:39 AM   #6
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6
Posts: 1,448

Rep: Reputation: 438Reputation: 438Reputation: 438Reputation: 438Reputation: 438
Quote:
Originally Posted by psoheil View Post
Your last suggestion is what made the whole thing work. I could have sworn I had the firewall disabled, but it looks like the firewall was turned on! I added an exception for "WWW (HTTP)" and "Secure WWW (HTTPS)" to the firewall and it started working. Thank you very much for your help!

Pete
You're welcome, glad you got sorted.
 
  


Reply

Tags
access, configuration, network, server


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
Unable to access web server from my machine - network cache issue? nicky77 Linux - Networking 10 06-16-2011 05:30 AM
Internal Network Server unable to access public Internet johndubchak Linux - Server 16 05-23-2010 03:38 PM
Unable to access Windows shares or printer over network MrCode Linux - General 4 12-20-2009 07:07 PM
Samba problem: Unable to browse/access Windows network cdrom600 Ubuntu 12 02-27-2007 08:22 PM


All times are GMT -5. The time now is 11:56 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration