Find the answer to your Linux question:
Results 1 to 4 of 4
Hi every one, I have installed Apache and stored HTML file under /var/WWW/html file in Linux. I am able to see the website in the physical computer the one am ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2011
    Location
    Chennai, Tamilnadu
    Posts
    13

    Cool Unable to get the shared website in lan.


    Hi every one,
    I have installed Apache and stored HTML file under /var/WWW/html file in Linux. I am able to see the website in the physical computer the one am working on it but when i tried on other computer which is connected on the same LAN i can get the test page of Apache server but the HTML file shows me a blank page without any error. I am using red hat Linux system-i86-el5.
    Apache version2.2 . Can any one help me in sorting this problem. I am desperately need someone's help at this point.

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Do you mean /var/www/html ? Case in the filesystem is relevant (in Linux).

    Is apache (httpd) running? Start it with "service httpd start"

    Is the firewall running? Temporarily disable it to rule it out as a problem ("service iptables stop"

    What does the apache log say? tailf /var/log/httpd/error_log

    Is the html page you've written readable by all?
    "ls -l /var/www/html/yourfile.html"

    Can you ping the Linux webserver machine from your client machine (the one on the same LAN trying to access it)?

  3. #3
    Just Joined!
    Join Date
    Jul 2011
    Location
    Chennai, Tamilnadu
    Posts
    13
    Well i disabled the firewall, i can ping the linux server from other machine. I can get the apache test page from other machine not the html page which i hosted under var/www/html.......... but i can get the html page on the same machine.

  4. $spacer_open
    $spacer_close
  5. #4
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    On the Linux server, run a tail of the apache log:
    Code:
    tailf /var/log/httpd/error_log
    Then on the client, attempt to access that webpage.

    What messages appear in the apache error log when you do this? If you don't see anything, do you see anything in the access log? /var/log/httpd/access_log

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •