Linux - NewbieThis 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
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.
Hi guys
I have installed LAMP.
I do have a static IP.
I need to know how to set it up some how that it is possible for others to see my site.
(Iv seen it being done, with the URL being the IP of the computer)
Thank u all in advance
i tried what u said but i could access the site through another computer over internet.
i tried http://78.146.17.225/index.html
but the browser said page not found.
sorry, i have no idea what i should be looking for and how.
but here is the result of netstat -nalp | grep :80
Code:
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 192.168.2.107:45985 62.24.131.32:80 TIME_WAIT -
tcp 0 0 192.168.2.107:60282 74.125.4.36:80 ESTABLISHED 5671/firefox
tcp 0 0 192.168.2.107:56704 62.24.131.10:80 TIME_WAIT -
tcp 0 0 192.168.2.107:56371 62.24.131.10:80 ESTABLISHED 5671/firefox
tcp6 0 0 :::80 :::* LISTEN -
Yes, it is possible; you just need to configure port forwarding on your router to forward port 80 (http) to your linux computer. And you need to make sure that your linux computer's firewall is not blocking inbound traffic on port 80.
Try these methods to access your site on your local computer:
Code:
http://localhost/ #will work if webserver is running & site is configured right
http://127.0.0.1/ #will work if webserver is running & site is configured right
http://xxx.xxx.xxx.xxx/ #Your IP Address here
If all the above methods work. Then your LAMP setup is fine. Your network is not configured right or firewall is preventing it. Try pinging your IP address from the other computer, if it does, then you can connect your webserver from that machine with your IP address.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.