Page 1 of 1

Cant connect to my localhost!

PostPosted: 18. September 2011 19:41
by jlaursen
Hello

For some reason I seem unable to connect to localhost
Using Windows 7 64-Bit with xampp 1.7.4

I have xampp installed on my external harddrive, and in the beginning, there was no problem...
now... for some reason its like my computer dont want me to connect to localhost. Its just stuck at "Connected to localhost"

Im 100% sure its my computer because if I stick my hdd into my moms laptop, there is no problems...

Anyone who can help?

Re: Cant connect to my localhost!

PostPosted: 18. September 2011 21:33
by glitzi85
Please check your hosts file (C:\Windows\system32\drivers\etc\hosts). Comment or remove all IPv6 Lines (those with : in it). The only really necessary line is this:
Code: Select all
127.0.0.1     localhost

If this does not help, please post the content (or at least the last few lines) of the Apache error log file (xampp\apache\logs\error.log).

glitzi

Re: Cant connect to my localhost!

PostPosted: 19. September 2011 20:46
by jlaursen
Hello

Thanks, for some reason my hosts file did not contain that line, thats now fixed and ive rebooted. Still not working, so here for your request is my error log:

http://pastebin.com/G2LA817m

Re: Cant connect to my localhost!

PostPosted: 19. September 2011 23:24
by hackattack142
I have read that sometimes running the following from a command prompt (Start > Run > cmd) will fix that error:
Code: Select all
netsh winsock reset

Re: Cant connect to my localhost!

PostPosted: 20. September 2011 17:01
by jlaursen
This is the result i get from this:

Code: Select all
The following helper DLL cannot be loaded: WSHELPER.DLL.
The following command was not found: winsock reset.

Re: Cant connect to my localhost!

PostPosted: 20. September 2011 18:04
by glitzi85
Open the file xampp\apache\conf\extra\httpd-mpm.conf and look at the end of the file. There will find this block:

Code: Select all
<IfModule mpm_winnt_module>
    ThreadsPerChild      150
    MaxRequestsPerChild    0
    #Win32DisableAcceptEx
</IfModule>


Remove the hash (#) in front of Win32DisableAcceptEx, save the file and restart Apache.

glitzi

Re: Cant connect to my localhost!

PostPosted: 20. September 2011 18:24
by Sharley
glitzi85 wrote:Open the file xampp\apache\conf\extra\httpd-mpm.conf and look at the end of the file. There will find this block:
Code: Select all
<IfModule mpm_winnt_module>
    ThreadsPerChild      150
    MaxRequestsPerChild    0
    #Win32DisableAcceptEx
</IfModule>
Remove the hash (#) in front of Win32DisableAcceptEx, save the file and restart Apache.
glitzi

Hi glitzi
Perhaps you may want to read the OP's other topic as most things related to his issue were covered by you and I already.
viewtopic.php?f=16&t=48220

It may need another approach to help find the solution ( is it perhaps OS related or some infection perhaps? ).
Could it be related to the external drive permissions if it networked etc. etc. ?
Best wishes. :)

@jlaursen
Perhaps restore the missing dll and see if it helps solve the mystery:

These Google search results will help finding a replacement for the lost dll which seems to be a common fault.

Good luck :)

Re: Cant connect to my localhost!

PostPosted: 20. September 2011 19:33
by jlaursen
I do Belive its my OS that has problems. No matter what drive, including the c drive it wornt work. I'll try to get the .dll file as soon as I get my Internet back up. It's really unstable ATM.

*off topic*
Would it be possible to make a torrent file of the new xampp version? My Internet is too unstable to download such big files. For some reason it screws up when there is missing around 10mb of the file.

Re: Cant connect to my localhost!

PostPosted: 20. September 2011 19:42
by Sharley
*off topic*
Would it be possible to make a torrent file of the new xampp version? My Internet is too unstable to download such big files. For some reason it screws up when there is missing around 10mb of the file.
Use the 7z version and extract it just like a zip file - 7zip is a free program.

Do a search for download manager and install one which will help greatly with bad connections as they usually keep downloading using a technique that will auto resume the download, ideal for bad connections, believe me I know first hand as I only have a dial-up.
I use this free download manager:
http://www.flashget.com/index_en.html


Remember if you get the dll and do the winsock fix it may help your Internet connection.

Also do a complete virus scan of your PC and also use a good malware app like Malwarebytes' (free).

Re: Cant connect to my localhost!

PostPosted: 20. September 2011 19:59
by jlaursen
I have winRAR, which also supports 7zip

And will definitely try the 7zip version, and regarding the dll, it appears to already exists, and it wornt let me replace the new one with the other one... not even sure if its safe?

And regarding my internet, i dont think it'll help... my whole area got the same problem :S

Re: Cant connect to my localhost!

PostPosted: 21. September 2011 13:03
by jlaursen
Just got the .7zip file, but it appears to still not be working

Here is my error log:

http://pastebin.com/1SWa7Lne


And yes... did disable the AcceptEX() thingy...

*Sorry for double post*

Re: Cant connect to my localhost!

PostPosted: 21. September 2011 13:21
by Sharley
I hope it does solve the mystery and I would be interested to know the outcome.

Good luck :)

Re: Cant connect to my localhost!

PostPosted: 23. September 2011 21:29
by jlaursen
I've just re-installed my OS, and XAMPP seems to be working now! So, it was an OS problem

I'd like to say thanks to all who have helped!

Re: Cant connect to my localhost!

PostPosted: 23. September 2011 21:34
by Sharley
That really is good news indeed, it had to be something that we could not replicate for you.

At last you can move forward and enjoy what XAMPP has to offer.

Good luck and my best wishes. :D