Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I installed apache 2.2.31 on linux ubuntu 15.10, Now entering the local ip address (127.0.1.1) produces the correct message "It Works", but entering my site's ip address produces only "Cannot find server at this address" Can anyone help?
I installed apache 2.2.31 on linux ubuntu 15.10, Now entering the local ip address (127.0.1.1) produces the correct message "It Works", but entering my site's ip address produces only "Cannot find server at this address" Can anyone help?
What do you mean by "my site's ip address"? Is it the actual IP on the same machine or do you mean a site hosted elsewhere? In the first case google "apache bind address", in the second ask the admin of that server. In a shared hosting environment you usually can't access your site through the IP.
By my site's IP address is the IP address for the machine I am on.
Accordingly, following the advice at the site you referenced, I changed Listen 80 to Listen 71.187.235.187:80.
Now, when I try to start apache, I get the message: (99)Cannot assign requested address: make_sock: could not bind to address 71.187.235.187:80
no listening sockets available, shutting down
Unable to open logs
By my site's IP address is the IP address for the machine I am on.
Accordingly, following the advice at the site you referenced, I changed Listen 80 to Listen 71.187.235.187:80.
Now, when I try to start apache, I get the message: (99)Cannot assign requested address: make_sock: could not bind to address 71.187.235.187:80
no listening sockets available, shutting down
Unable to open logs
Change it back to "Listen 80" and it should bind to all interfaces.
That IP looks like the external IP your ISP gives you, not your IP in your LAN. Please post the output of "ifconfig".
Following is the output of ifconfig:
enp0s31f6 Link encap:Ethernet HWaddr 40:8d:5c:57:b5:25
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:16 Memory:df200000-df220000
Using 192.168.1.162 produces the correct result on my machine and on another machine connected to the same router; however, although apache is running, I get no result when I enter 192.168.1.162 on another machine not connected to the same router. Note that the site "What is my IP address" says that my IP address is 71.187.235.187, which does not work even on my machine. Note also that Listen in httpd.config is set to 80.
192.168.1.162 is not routable, it is a private address. You need to forward port 80 in your router to the machine running web server. But it will work only if your ISP is not blocking port 80.
Using 192.168.1.162 produces the correct result on my machine and on another machine connected to the same router; however, although apache is running, I get no result when I enter 192.168.1.162 on another machine not connected to the same router. Note that the site "What is my IP address" says that my IP address is 71.187.235.187, which does not work even on my machine. Note also that Listen in httpd.config is set to 80.
71.187.235.187 is the external IP of your router. To make your server accessible on port 80 from outside you need to forward port 80 to your server in your router settings. But seeing your lack of basic networking knowledge you should think twice whether you really want to do this.
Thank you very much horageno and Emerson. You are absolutely correct. I forwarded port 80 to my computer in my router, and I am now able to connect to my website.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.