Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I know how to install APACHE 100% but Localhost doesnt answer!! please help!!

Status
Not open for further replies.

seeburii

Programmer
Aug 24, 2012
8
ES
I want to be clear and precise, I have posted step by step what I do to install Appserver/wamp/xampp in my computer at several spanish languaje forum and nobody knows what happens. When everything is ready localhost doesnt answer. It loads forever...

I have 4 computers at home. I have tried to install xampp in one computer, wamp in another and in the other appserver, but in this one where im typing right now it doesnt work.

First of all, now im with Wamp, both services are running (wampache and wampmysql). When I go to the bin folder inside the Apache folder and try to execute "httpd.exe" I see this error:

"Solo se permite un uso de cada direccion de socket (protocolo/direccion de red/puerto): make_sock: could not bin to address 0.0.0.0:80 no listening sockets available, shutting down
Unable to open logs"


First sentence is something like: It only allows one use of each socket address (protocol/network adress/port).

I have used of course several ports, with "8080" works in my other computers. In this PC I have tried with 80, 8080, and more which recommend me in forum and always the same error.

I feel like I have localhost unable or something like that, because I have never seen anything typing 127.0.0.1 in my pc explorer.

I know the error means that I have the port bussy, but in this snapshot I will show you with the help of the "netstat -ano" command that the port is used by apache:



Please, if somebody could help me... I know is hard to find the problem without being in my pc, but Im not new in this, as I told, I have installed 3 apaches yet on the other computers and this has something wrong... Maybe someone has faced a similar situation.

Thanks you everybody!
 
Hi

Just the regular first question : is any firewall software active on those machines ? ( Maybe not a dedicated firewall, but other kind of security software doing more than was asked to do. )

seeburii said:
I have tried to install xampp in one computer, wamp in another and in the other appserver
Ever tried to install Apache itself ?


Feherke.
[link feherke.github.com/][/url]
 
Hello feherke.

First I think I havent any Firewall, I unistalled COMODO Firewall before doing anything... And I dont have any antivirus. I have seen that I have some services (like 15) that in the grup column I can read: "LocalServiceNetworkRestricted" and "LocalSystemNetworkRestricted" I think is a normal thing but it caught my attention.

I havent installed only Apache because I need mysql and the other services it offers (like ftp in xampp).

The firewall is important to work in Local? Is a very easy task. Only Install it run the services at the end of the install, and write 127.0.0.1:8080 in the explorer but here is impossible... It loads till the time of the chrome finishes. As I said I tried other ports and nothing. Is like I have disabled my Localhost.

What you recommend? :S

Thanks you.
 
Hi

Well, that was just the regular first question people would ask you anyway at one point when debugging such things. Now that you answered no, I have no idea.

Personally I would try to run [tt]netcat -l -p 8080[/tt] and see if it gets anything when visiting [ignore][/ignore] from a browser or with [tt]netcat localhost 8080[/tt] . On Windows you can have [tt]netcat[/tt] as part of the CygWin package ( certainly present on the Windows machines I put my hands on ). If you not have it, I have no further steps idea for now.

Feherke.
[link feherke.github.com/][/url]
 
It runs with 64 bits Windows 7 professional? (I forgot to tell you)

Anyway Im sure Wamp for example runs on W7 64 bits, but im not sure if Cygwin runs on it.
 
Hi

Sorry, never saw a 64 bit machine. Anyway, not have CygWin already on your machine, forget it. [tt]netcat[/tt] may help in debugging, but is not part of any solution.


Feherke.
[link feherke.github.com/][/url]
 
The default answer for this is:

Open Skype go Tools -> Options -> Advanced -> Connection -> Uncheck "Use port 80 and 443 as alternatives for incoming connections" -> Save

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Hello ChrisHirst. I used port 80, 8080, 8181, and then use like ten differents invented by me [roll1]

Anyway I was so desesperate that I unistalled Skype (I have it on my Smartphone so is no problem).

Pd: Im still desesperate [flush]

Thanks you for your answer.
 
Ok, another thing:

Opening CMD and writing: netstat -ano

I see this:


Microsoft Windows [Versión 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. Reservados todos los derechos.

C:\Users\pedrito>netstat -ano

Conexiones activas

Proto Dirección local Dirección remota Estado PID
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 7072
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 904
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4
TCP 0.0.0.0:554 0.0.0.0:0 LISTENING 2016
TCP 0.0.0.0:1025 0.0.0.0:0 LISTENING 548
TCP 0.0.0.0:1026 0.0.0.0:0 LISTENING 764
TCP 0.0.0.0:1027 0.0.0.0:0 LISTENING 1044
TCP 0.0.0.0:1028 0.0.0.0:0 LISTENING 640
TCP 0.0.0.0:1035 0.0.0.0:0 LISTENING 612
TCP 0.0.0.0:2869 0.0.0.0:0 LISTENING 4
TCP 0.0.0.0:10243 0.0.0.0:0 LISTENING 4
TCP 0.0.0.0:54321 0.0.0.0:0 LISTENING 2252
TCP 127.0.0.1:80 127.0.0.1:13773 CLOSE_WAIT 7072
TCP 127.0.0.1:80 127.0.0.1:13774 CLOSE_WAIT 7072
TCP 127.0.0.1:80 127.0.0.1:13775 CLOSE_WAIT 7072
TCP 127.0.0.1:80 127.0.0.1:13776 CLOSE_WAIT 7072
TCP 127.0.0.1:80 127.0.0.1:13777 CLOSE_WAIT 7072
TCP 127.0.0.1:80 127.0.0.1:13778 CLOSE_WAIT 7072
TCP 127.0.0.1:80 127.0.0.1:13779 CLOSE_WAIT 7072
TCP 127.0.0.1:80 127.0.0.1:13783 CLOSE_WAIT 7072
TCP 127.0.0.1:80 127.0.0.1:13784 CLOSE_WAIT 7072
TCP 127.0.0.1:80 127.0.0.1:13785 ESTABLISHED 7072
TCP 127.0.0.1:80 127.0.0.1:13787 CLOSE_WAIT 7072
TCP 127.0.0.1:13773 127.0.0.1:80 FIN_WAIT_2 5048
TCP 127.0.0.1:13774 127.0.0.1:80 FIN_WAIT_2 5048
TCP 127.0.0.1:13775 127.0.0.1:80 FIN_WAIT_2 5048
TCP 127.0.0.1:13776 127.0.0.1:80 FIN_WAIT_2 5048
TCP 127.0.0.1:13777 127.0.0.1:80 FIN_WAIT_2 5048
TCP 127.0.0.1:13778 127.0.0.1:80 FIN_WAIT_2 5048
TCP 127.0.0.1:13779 127.0.0.1:80 FIN_WAIT_2 5048
TCP 127.0.0.1:13783 127.0.0.1:80 FIN_WAIT_2 5048
TCP 127.0.0.1:13784 127.0.0.1:80 FIN_WAIT_2 5048
TCP 127.0.0.1:13785 127.0.0.1:80 ESTABLISHED 5048
TCP 127.0.0.1:13787 127.0.0.1:80 FIN_WAIT_2 5048
TCP 127.0.0.1:46883 0.0.0.0:0 LISTENING 2384
TCP 127.0.0.1:46883 127.0.0.1:46889 ESTABLISHED 2384
TCP 127.0.0.1:46889 127.0.0.1:46883 ESTABLISHED 2384
TCP 192.168.1.132:139 0.0.0.0:0 LISTENING 4
TCP 192.168.1.132:13318 212.106.219.138:80 ESTABLISHED 5048
TCP 192.168.1.132:13321 91.199.212.171:80 CLOSE_WAIT 964
TCP 192.168.1.132:13325 178.255.82.1:80 CLOSE_WAIT 964
TCP 192.168.1.132:13445 80.26.227.113:50649 ESTABLISHED 5576
TCP 192.168.1.132:13675 173.194.34.248:443 ESTABLISHED 5048
TCP 192.168.1.132:13722 173.194.34.228:443 TIME_WAIT 0
TCP 192.168.1.132:13751 173.194.34.227:80 ESTABLISHED 5048
TCP 192.168.1.132:13762 173.194.34.249:80 ESTABLISHED 5048
TCP 192.168.1.132:13763 173.194.34.237:80 ESTABLISHED 5048
TCP 192.168.1.132:13812 205.251.242.203:80 ESTABLISHED 5048
TCP 192.168.1.132:13813 205.251.242.203:80 ESTABLISHED 5048
TCP 192.168.1.132:13814 205.251.242.203:80 ESTABLISHED 5048
TCP 192.168.1.132:13815 205.251.242.203:80 ESTABLISHED 5048
TCP 192.168.1.132:13816 205.251.242.203:80 ESTABLISHED 5048
TCP 192.168.1.132:13817 205.251.242.203:80 ESTABLISHED 5048
TCP 192.168.1.132:13818 92.123.231.139:80 ESTABLISHED 5048
TCP 192.168.1.132:13826 95.131.168.181:80 CLOSE_WAIT 5048
TCP 192.168.1.132:13827 212.106.219.168:80 ESTABLISHED 5048
TCP 192.168.1.132:13830 140.211.11.131:80 TIME_WAIT 0
TCP 192.168.1.132:13831 140.211.11.131:80 TIME_WAIT 0
TCP 192.168.1.132:13832 140.211.11.131:80 TIME_WAIT 0
TCP 192.168.1.132:13833 140.211.11.131:80 TIME_WAIT 0
TCP 192.168.1.132:13834 140.211.11.121:443 ESTABLISHED 5048
TCP 192.168.1.132:13835 140.211.11.121:443 ESTABLISHED 5048
TCP 192.168.1.132:13836 140.211.11.121:443 TIME_WAIT 0
TCP 192.168.1.132:13837 65.55.72.183:80 ESTABLISHED 5048
TCP 192.168.1.132:13839 65.54.165.136:443 ESTABLISHED 5048
TCP 192.168.1.132:13841 94.245.116.13:80 ESTABLISHED 5048
TCP 192.168.1.132:13842 212.106.219.169:80 ESTABLISHED 5048
TCP 192.168.1.132:13843 212.106.219.169:80 ESTABLISHED 5048
TCP 192.168.1.132:13844 212.106.219.169:80 ESTABLISHED 5048
TCP 192.168.1.132:13845 212.106.219.169:80 TIME_WAIT 0
TCP 192.168.1.132:13846 212.106.219.153:80 ESTABLISHED 5048
TCP 192.168.1.132:13847 212.106.219.153:80 ESTABLISHED 5048
TCP 192.168.1.132:13848 212.106.219.153:80 ESTABLISHED 5048
TCP 192.168.1.132:13849 212.106.219.169:80 ESTABLISHED 5048
TCP 192.168.1.132:13850 212.106.219.169:80 TIME_WAIT 0
TCP 192.168.1.132:13851 212.106.219.169:80 TIME_WAIT 0
TCP 192.168.1.132:13852 212.106.219.169:80 TIME_WAIT 0
TCP 192.168.1.132:13853 212.106.219.153:80 ESTABLISHED 5048
TCP 192.168.1.132:13854 212.106.219.153:80 ESTABLISHED 5048
TCP 192.168.1.132:13855 212.106.219.153:80 ESTABLISHED 5048
TCP 192.168.1.132:13856 212.106.219.169:80 ESTABLISHED 5048
TCP 192.168.1.132:13857 212.106.219.169:80 ESTABLISHED 5048
TCP 192.168.1.132:13858 212.106.219.171:80 ESTABLISHED 5048
TCP 192.168.1.132:13859 212.106.219.171:80 TIME_WAIT 0
TCP 192.168.1.132:13860 212.106.219.171:80 TIME_WAIT 0
TCP 192.168.1.132:13861 212.106.219.171:80 TIME_WAIT 0
TCP 192.168.1.132:13862 212.106.219.171:80 TIME_WAIT 0
TCP 192.168.1.132:13863 212.106.219.171:80 TIME_WAIT 0
TCP 192.168.1.132:13864 95.101.121.165:80 ESTABLISHED 5048
TCP 192.168.1.132:13865 95.101.121.165:80 TIME_WAIT 0
TCP 192.168.1.132:13866 95.101.121.165:80 TIME_WAIT 0
TCP 192.168.1.132:13867 212.106.219.194:80 TIME_WAIT 0
TCP 192.168.1.132:13868 212.106.219.194:80 ESTABLISHED 5048
TCP 192.168.1.132:13869 92.122.116.124:80 ESTABLISHED 5048
TCP 192.168.1.132:13870 92.122.116.124:80 ESTABLISHED 5048
TCP 192.168.1.132:13871 92.122.116.124:80 ESTABLISHED 5048
TCP 192.168.1.132:13872 92.122.116.124:80 ESTABLISHED 5048
TCP 192.168.1.132:13873 92.122.116.124:80 ESTABLISHED 5048
TCP 192.168.1.132:13876 92.122.116.124:443 ESTABLISHED 5048
TCP 192.168.1.132:13877 212.106.219.171:80 ESTABLISHED 5048
TCP 192.168.1.132:13878 92.122.116.124:80 ESTABLISHED 5048
TCP 192.168.1.132:13880 65.54.52.57:80 ESTABLISHED 5048
TCP 192.168.1.132:13881 65.55.195.237:80 ESTABLISHED 5048
TCP 192.168.1.132:13882 65.55.195.237:80 ESTABLISHED 5048
TCP 192.168.1.132:13883 65.54.191.45:80 ESTABLISHED 5048
TCP 192.168.1.132:13884 65.54.191.45:80 ESTABLISHED 5048
TCP 192.168.1.132:13885 65.54.191.45:80 ESTABLISHED 5048
TCP 192.168.1.132:13887 65.55.142.172:80 ESTABLISHED 5048
TCP 192.168.1.132:13892 212.106.219.192:80 ESTABLISHED 5048
TCP 192.168.1.132:13893 212.106.219.192:80 ESTABLISHED 5048
TCP 192.168.1.132:13894 95.101.121.165:443 ESTABLISHED 5048
TCP 192.168.1.132:13895 94.245.117.45:80 ESTABLISHED 5048
TCP 192.168.1.132:13896 64.4.21.40:80 ESTABLISHED 5048
TCP 192.168.1.132:13899 88.221.197.186:80 ESTABLISHED 5048
TCP 192.168.1.132:13900 88.221.197.186:443 ESTABLISHED 5048
TCP 192.168.1.132:13901 64.4.21.40:80 TIME_WAIT 0
TCP 192.168.1.132:13903 131.253.12.190:80 ESTABLISHED 5048
TCP 192.168.1.132:13904 212.106.219.153:80 ESTABLISHED 5048
TCP 192.168.1.132:13905 212.106.219.153:80 TIME_WAIT 0
TCP 192.168.1.132:13906 173.194.34.228:443 ESTABLISHED 5048
TCP 192.168.1.132:13907 65.54.48.107:80 ESTABLISHED 5048
TCP 192.168.1.132:13913 157.55.117.17:80 TIME_WAIT 0
TCP 192.168.1.132:13914 157.55.117.17:80 TIME_WAIT 0
TCP 192.168.1.132:13919 94.245.117.47:80 ESTABLISHED 5048
TCP 192.168.1.132:13925 173.194.34.231:443 ESTABLISHED 5048
TCP 192.168.1.132:13927 199.16.173.25:80 TIME_WAIT 0
TCP 192.168.1.132:13928 50.16.238.190:80 ESTABLISHED 5048
TCP 192.168.1.132:13929 107.22.223.184:80 ESTABLISHED 5048
TCP 192.168.1.132:13930 212.106.219.11:80 TIME_WAIT 0
TCP 192.168.1.132:13931 212.106.219.11:80 TIME_WAIT 0
TCP 192.168.1.132:47485 94.245.117.47:80 CLOSE_WAIT 2384
TCP 192.168.1.132:57946 65.55.71.98:1863 ESTABLISHED 5576
TCP [::]:135 [::]:0 LISTENING 904
TCP [::]:445 [::]:0 LISTENING 4
TCP [::]:554 [::]:0 LISTENING 2016
TCP [::]:1025 [::]:0 LISTENING 548
TCP [::]:1026 [::]:0 LISTENING 764
TCP [::]:1027 [::]:0 LISTENING 1044
TCP [::]:1028 [::]:0 LISTENING 640
TCP [::]:1035 [::]:0 LISTENING 612
TCP [::]:2869 [::]:0 LISTENING 4
TCP [::]:10243 [::]:0 LISTENING 4
UDP 0.0.0.0:5004 *:* 2016
UDP 0.0.0.0:5005 *:* 2016
UDP 0.0.0.0:5355 *:* 364
UDP 127.0.0.1:1900 *:* 4064
UDP 127.0.0.1:44301 *:* 2104
UDP 127.0.0.1:54074 *:* 5576
UDP 127.0.0.1:57007 *:* 464
UDP 127.0.0.1:59892 *:* 4064
UDP 127.0.0.1:62081 *:* 2384
UDP 127.0.0.1:64173 *:* 2252
UDP 192.168.1.132:9 *:* 2384
UDP 192.168.1.132:9 *:* 5576
UDP 192.168.1.132:137 *:* 4
UDP 192.168.1.132:138 *:* 4
UDP 192.168.1.132:1900 *:* 4064
UDP 192.168.1.132:51777 *:* 2252
UDP 192.168.1.132:59891 *:* 4064
UDP [::]:5004 *:* 2016
UDP [::]:5005 *:* 2016
UDP [::]:5355 *:* 364
UDP [::1]:1900 *:* 4064
UDP [::1]:59890 *:* 4064
UDP [fe80::3904:5907:2c26:b064%11]:546 *:*
764
UDP [fe80::3904:5907:2c26:b064%11]:1900 *:*
4064
UDP [fe80::3904:5907:2c26:b064%11]:51666 *:*
4064

C:\Users\pedrito>


As you can see 0.0.0.80 is listening but the conexions in 127.0.0.1:80 are or "close_wait" or Established (only one). Evidently the PID 7072 is the apache Service.

Maybe it can be helpful.

Thanks you
 
Apache binding to 0.0.0.0. means all assigned EXTERNAL IPs are listening on that port, so you will be able to connect to the server from the local network but NOT on the actual machine to itself.

localhost refers to the NIC loopback connection at 127.0.0.1 which is ONLY available on the machine itself.





Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Hi

Im spanish but I think I have understood it. 0.0.0.80 sais that people with their external ip can listen that port, but it is not related with my localhost and localip.

I think problem is here, because I am using now port 8080 which is free (like port 80 but well), and in the 127.0.0.1:80 is not listening well, thats maybe why it says close_wait. If the problem is no here I have no Idea why it waits and waits and loads and loads foreverrrrrrrrrrrrrrrrrrr.

Im sure the fastest solution is format my PC. Im sure some file is bad or something and formating I would Fix it. But no, im not so coward and I want to find the true problem of the eternal load in the localhost. The ports are not the problem because they are not bussy.

I have try some old versions from Apache too, Wamp, Appserver, Xampp... Nothing Works. I call Help!

Thanks for your help Chris
 
A reformat is a bit drastic

What happens if you open in a browser from another machine, where n.n is the last two octects of the machine running Apache?

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Okay Im making progress with you Chris.

Here my Wamp is working on port: 8080. So with my laptop I tried to connect to 192.168.n.n:8080 and it loads forever like Im facing here.

But, as I told I had Xampp on my Laptop, So I have started Xampp and in My PC (the original which have the problem) I write 192.168.n.n (it is running on port 80) and I see Xampp on my PC (FOR FIRST TIME) is xampp from my laptop but I think is a good new, isnt it?

My question now is: Can I work with that Xampp and with my PC? I mean I need to work with his php etc but with my processor and with my network card, not with the laptop.

I have the laptop ON 24/7 so that is no problem.

I wait your answer and thanks you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top