[SOLVED] Unable to Access Server from Windows Network
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
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?
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.
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.
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
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:
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!
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.