Localhost works for iis, but not xampp

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Localhost works for iis, but not xampp

Postby trhwallst » 19. December 2011 16:22

I have installed and re-installed a clean XAMPP 1.7.7 and I cannot get a connection using XAMPP. If I turn on iis, I get a connection to the localhost.

Currently no firewall or virus scan running until I get this fixed.

Any help would be appreciated.

Thanks!
trhwallst
 
Posts: 11
Joined: 23. May 2011 10:34
Operating System: Windows 7

Re: Localhost works for iis, but not xampp

Postby Sharley » 19. December 2011 16:48

Would you be so kind as to add your XAMPP version and Operating System to your profile as per these instructions:
viewtopic.php?f=16&t=48626
Thanks. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Localhost works for iis, but not xampp

Postby trhwallst » 19. December 2011 17:23

Completed that. Thank You!
trhwallst
 
Posts: 11
Joined: 23. May 2011 10:34
Operating System: Windows 7

Re: Localhost works for iis, but not xampp

Postby Sharley » 19. December 2011 17:33

You can start Apache and MySQL using the control panel found in the xampp folder:
xampp-control-3-beta.exe

If Apache can't start read the error.log file in the \xampp\apache\logs folder.

What are you typing in the browser?
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Localhost works for iis, but not xampp

Postby trhwallst » 19. December 2011 17:45

I am using Chrome. I can start Apache and MySQL in the control panel. However, the localhost will not display.
trhwallst
 
Posts: 11
Joined: 23. May 2011 10:34
Operating System: Windows 7

Re: Localhost works for iis, but not xampp

Postby Sharley » 19. December 2011 18:01

Sharley wrote:What are you typing in the browser?
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Localhost works for iis, but not xampp

Postby trhwallst » 19. December 2011 19:37

localhost it's always worked before
trhwallst
 
Posts: 11
Joined: 23. May 2011 10:34
Operating System: Windows 7

Re: Localhost works for iis, but not xampp

Postby Sharley » 19. December 2011 19:41

Now read the \xampp\apache\logs\error.log file for clues just after you try http://localhost/index.php
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Localhost works for iis, but not xampp

Postby trhwallst » 19. December 2011 20:45

I turned off iis, rebooted and the iis logo came up in localhost. I then started apache and it would not produce any page in localhost.

http://localhost/index.php does not produce anythink.

I appreciate the help!
trhwallst
 
Posts: 11
Joined: 23. May 2011 10:34
Operating System: Windows 7

Re: Localhost works for iis, but not xampp

Postby trhwallst » 19. December 2011 20:48

Logs:

Mon Dec 19 14:43:43 2011] [warn] pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Mon Dec 19 14:43:43 2011] [notice] Digest: generating secret for digest authentication ...
[Mon Dec 19 14:43:43 2011] [notice] Digest: done
[Mon Dec 19 14:43:51 2011] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Mon Dec 19 14:43:51 2011] [notice] Server built: Sep 10 2011 11:34:11
[Mon Dec 19 14:43:51 2011] [notice] Parent: Created child process 4404
[Mon Dec 19 14:43:56 2011] [notice] Digest: generating secret for digest authentication ...
[Mon Dec 19 14:43:56 2011] [notice] Digest: done
[Mon Dec 19 14:43:57 2011] [notice] Child 4404: Child process is running
[Mon Dec 19 14:43:57 2011] [notice] Child 4404: Acquired the start mutex.
[Mon Dec 19 14:43:57 2011] [notice] Child 4404: Starting 150 worker threads.
[Mon Dec 19 14:43:57 2011] [error] (OS 10038)An operation was attempted on something that is not a socket. : winnt_accept: getsockname error on listening socket, is IPv6 available?
[Mon Dec 19 14:43:57 2011] [error] (OS 10038)An operation was attempted on something that is not a socket. : winnt_accept: getsockname error on listening socket, is IPv6 available?
[Mon Dec 19 14:43:57 2011] [error] (OS 10038)An operation was attempted on something that is not a socket. : winnt_accept: getsockname error on listening socket, is IPv6 available?
[Mon Dec 19 14:43:57 2011] [error] (OS 10038)An operation was attempted on something that is not a socket. : winnt_accept: getsockname error on listening socket, is IPv6 available?
trhwallst
 
Posts: 11
Joined: 23. May 2011 10:34
Operating System: Windows 7

Re: Localhost works for iis, but not xampp

Postby Sharley » 20. December 2011 01:13

Drag C:\Windows\system32\drivers\etc\hosts file into a text editor and make sure the first 2 lines after all the comments look like this
Code: Select all
127.0.0.1 localhost
# ::1 localhost

Next to get rid of this error:
Code: Select all
winnt_accept: getsockname error on listening socket, is IPv6 available?
try following these instruction to reset winsock:

Click on start>run>cmd.exe
Type:
netsh winsock RESET
Click OK

Restart your PC and again try and start Apache.

In Win7 you will have to know how to open a command console or use the latest XAMPP Control Panel found in the xampp folder:
Right click and select to run as an admin
xampp-control-3-beta.exe
and then click on the XAMPP-Shell button and then type the above command.

The latest version of the XCPv3 can be downloaded from the link in my signature.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Localhost works for iis, but not xampp

Postby trhwallst » 20. December 2011 01:52

That file does not exist. I have lmhosts.sam

When I try to run: netsh winsock RESET

I get an error: The following helper DLL could not be loaded : WSHELPER.DLL
The following command was not found : winsock RESET
trhwallst
 
Posts: 11
Joined: 23. May 2011 10:34
Operating System: Windows 7

Re: Localhost works for iis, but not xampp

Postby Sharley » 20. December 2011 02:45

You need to configure Windows 7 to allow you to see hidden and system files selected in the Windows Control Panel>Folder Options so you can see the HOSTS file as all Windows versions have this file but it is a hidden file by default in W7.

Are you logged in to Windows as an administrator?

To do the winsock reset see if there are any search results that help.

Instead of using the XCPv3 shell use a command prompt to do the winsock reset:
http://www.sevenforums.com/tutorials/94 ... rompt.html
A very helpful forum for Windows 7 users.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Localhost works for iis, but not xampp

Postby trhwallst » 20. December 2011 03:18

Sharly,

Thanks for all the help. I am logged in as administrator...no hidden files...no HOSTS file and I have attempted numerous times to use command prompt to reset the winsock.

Still not working...
trhwallst
 
Posts: 11
Joined: 23. May 2011 10:34
Operating System: Windows 7

Re: Localhost works for iis, but not xampp

Postby Altrea » 20. December 2011 05:04

trhwallst wrote:I am logged in as administrator...no hidden files...no HOSTS file

Trust us, the file is present. Which Explorer/Commander do you use to navigate to the file?
There are some known problems with TotalCommander, FreeCommander, etc. to find that file correctly.

Open your command line (cmd) and type in
Code: Select all
cd %systemRoot%/system32/drivers/etc

dir

You should see that the file is there.

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Next

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 102 guests