Apache stops when using MS Loopback Adapter

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

Apache stops when using MS Loopback Adapter

Postby edmund » 25. May 2012 20:42

Hi, I'm still learning so please go slow with me.

I am trying to install XAMPP 1.7.7
It is installed in c:/xampp/
I am using Windows XP Pro SP3 32bit
I do not have a network card, but I have installed the Microsoft Loopback Adapter. It is currently using address 199.0.0.100 (previously stated erroneously as 127.0.0.2)

When I run xampp-control, apache starts for about 2 seconds then stops. The error log is as follows:

[Sat May 26 04:47:40 2012] [notice] Digest: generating secret for digest authentication ...
[Sat May 26 04:47:40 2012] [notice] Digest: done
[Sat May 26 04:47:41 2012] [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
[Sat May 26 04:47:41 2012] [notice] Server built: Sep 10 2011 11:34:11
[Sat May 26 04:47:41 2012] [notice] Parent: Created child process 3576
[Sat May 26 04:47:42 2012] [notice] Digest: generating secret for digest authentication ...
[Sat May 26 04:47:42 2012] [notice] Digest: done
[Sat May 26 04:47:42 2012] [notice] Child 3576: Child process is running
[Sat May 26 04:47:42 2012] [crit] (OS 10022)An invalid argument was supplied. : Child 3576: setup_inherited_listeners(), WSASocket failed to open the inherited socket.
[Sat May 26 04:47:42 2012] [crit] Parent: child process exited with status 3 -- Aborting.


I have searched the forums and already eliminated the following problems:

1. I have unchecked the “Enable LMHOSTS Lookup” box as per http://stackoverflow.com/questions/8741526/apache-cant-start-in-wamp-server
2. I have used "netstat" in command prompt to ensure no other process is listening on 80

I would greatly appreciate any help.
Sincerely, Edmund
Last edited by edmund on 26. May 2012 14:32, edited 1 time in total.
edmund
 
Posts: 3
Joined: 25. May 2012 20:23
Operating System: Windows XP Pro SP3 32bit

Re: Apache stops when using MS Loopback Adapter

Postby JonB » 25. May 2012 22:30

for starters:

A:. - open a Command Window and ping 127.0.0.2 - what happens?

B: - [crit] (OS 10022)An invalid argument was supplied. <- is an Operating System error

A Google search on " [crit] (OS 10022)An invalid argument was supplied. XAMPP"
turned up several XAMPP topics

viewtopic.php?p=190333 (RE-INSTALLED xampp)

viewtopic.php?f=16&t=49824#p192151 (Corrupt TCP/IP Stack fix)

http://support.microsoft.com/kb/811259/en

Good Luck
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Apache stops when using MS Loopback Adapter

Postby edmund » 26. May 2012 14:15

Dear JonB
Thanks for your kind help so far. I tried both your suggestions.

1. RE-INSTALL:
I deleted the install version of XAMPP, and downloaded and extracted the ZIP version,
as per
viewtopic.php?p=190333

2. Corrupt TCP/IP Stack fix
I also checked my network protocols, they are all installed. I also restored my system files and settings back to when I had freshly installed XP
as per
http://support.microsoft.com/kb/811259/en

Unfortunately, both methods met without success. :cry:

A. Ping: I made a mistake in my original post (late night), my IP is 199.0.0.100
The result of a ping is as follows:
Code: Select all
C:\>ping 199.0.0.100
Pinging 199.0.0.100 with 32 bytes of data:
Reply from 199.0.0.100: bytes=32 time<1ms TTL=128
Reply from 199.0.0.100: bytes=32 time<1ms TTL=128
Reply from 199.0.0.100: bytes=32 time<1ms TTL=128
Reply from 199.0.0.100: bytes=32 time<1ms TTL=128
Ping statistics for 199.0.0.100:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\>_


I have taken a whole heap of relevant print screens but am unsure how to upload them. So I will attempt to describe instead.

The only programs I have installed are:
1. Adobe Reader 9.3
2. MS Office
3. Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.17
(before I installed this, apache would not even start, now it does, but stops)
4. VLC media player
5. NVIDIA drivers

I am using the XAMPP Control Panel v3.0.2
MySQL starts fine

When I click on "Netstat" I get:

Address Port PID Name
0.0.0.0 80 732 c:\xampp\apache\bin\httpd.exe
0.0.0.0 443 732 c:\xampp\apache\bin\httpd.exe

0.0.0.0 445 4 system
0.0.0.0 3306 1224 c:\xampp\mysql\bin\mysql.exe
0.0.0.0 16471 1356 c:\windows\explorer.exe
0.0.0.0 34354 848 c:\windows\system32\scvhost.exe
127.0.0.1 1095 876 c:\windows\system32\alg.exe
199.0.0.100 139 4 system

The output from the error file is:

Code: Select all
[Sat May 26 13:24:22 2012] [notice] Digest: generating secret for digest authentication ...
[Sat May 26 13:24:22 2012] [notice] Digest: done
[Sat May 26 13:24:22 2012] [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
[Sat May 26 13:24:22 2012] [notice] Server built: Sep 10 2011 11:34:11
[Sat May 26 13:24:22 2012] [notice] Parent: Created child process 1744
[Sat May 26 13:24:23 2012] [notice] Digest: generating secret for digest authentication ...
[Sat May 26 13:24:23 2012] [notice] Digest: done
[Sat May 26 13:24:23 2012] [notice] Child 1744: Child process is running
[Sat May 26 13:24:23 2012] [crit] (OS 10022)An invalid argument was supplied.  : Child 1744: setup_inherited_listeners(), WSASocket failed to open the inherited socket.
[Sat May 26 13:24:23 2012] [crit] Parent: child process exited with status 3 -- Aborting.
[Sat May 26 13:24:56 2012] [notice] Digest: generating secret for digest authentication ...
[Sat May 26 13:24:56 2012] [notice] Digest: done
[Sat May 26 13:24:57 2012] [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
[Sat May 26 13:24:57 2012] [notice] Server built: Sep 10 2011 11:34:11
[Sat May 26 13:24:57 2012] [notice] Parent: Created child process 808
[Sat May 26 13:24:58 2012] [notice] Digest: generating secret for digest authentication ...
[Sat May 26 13:24:58 2012] [notice] Digest: done
[Sat May 26 13:24:58 2012] [notice] Child 808: Child process is running
[Sat May 26 13:24:58 2012] [crit] (OS 10022)An invalid argument was supplied.  : Child 808: setup_inherited_listeners(), WSASocket failed to open the inherited socket.
[Sat May 26 13:24:58 2012] [crit] Parent: child process exited with status 3 -- Aborting.


The only error being written to the OS system log is:
Code: Select all
Could not start the Network Location Awareness (NLA) service on the Local Computer. Error 127: The specified procedure could not be found.


I have manually set my IP address to 199.0.0.100
I have manually set my Subnet mask to 255.255.255.0
My physical address is 02-00-4C-4F-4F-50
I have tried both "enable LMHOSTS lookup" as checked and unchecked
My Windows Firewall is turned off and I have no virus checker. It is a standalone PC, (not the one I am using for this forum)

The following outputs may be relevant?
Code: Select all
C:\>netstat -r
Route Table
======================================================
Interface List
0x1 ................................. MS TCP Loopback interface
0x2 ...02 00 4c 4f 4f 50 .... Microsoft Loopback Adapter
======================================================
======================================================
Active Routes:
Network Destination   Netmask           Gateway        Interface      Metric
127.0.0.0             255.0.0.0         127.0.0.1      127.0.0.1      1
199.0.0.0             255.255.255.0     199.0.0.100    199.0.0100     30
199.0.0.100           255.255.255.255   127.0.0.1      127.0.0.1      30
199.0.0.255           255.255.255.255   199.0.0.100    199.0.0.100    30
244.0.0.0             240.0.0.0         199.0.0.100    199.0.0.100    30
255.255.255.255       255.255.255.255   199.0.0.100    199.0.0.100    1
======================================================
Persistent Routes:
   None

C:\>netstat -a
Active Connections
  Proto  Local Address         Foreign Address          State
  TCP    PC:microsoft-ds       0.0.0.0:0                Listening
  TCP    PC:16471              0.0.0.0:0                Listening
  TCP    PC:34354              0.0.0.0:0                Listening
  TCP    PC:1096               0.0.0.0:0                Listening
  TCP    PC:netbios-ssn        0.0.0.0:0                Listening
  UDP    PC:microsoft-ds       *:*
  UDP    PC:isakmp             *:*
  UDP    PC:1101               *:*
  UDP    PC:4500               *:*
  UDP    PC:16471              *:*
  UDP    PC:34354              *:*
  UDP    PC:ntp                *:*
  UDP    PC:1900               *:*
  UDP    PC:ntp                *:*
  UDP    PC:netbios-ns         *:*
  UDP    PC:netbios-dgm        *:*
  UDP    PC:1900               *:*
C:\>



My Local Area Connection Stats is:
Connection
Status: Connected
Duration: 00:33:13
Speed: 10.0 Mbps

Activity
Packets Sent: 364
Packets Received: 0


When I run setup_xampp.bat I get:
Code: Select all
C:\xampp>setup_xampp.bat

 #############################################################
 # ApacheFriends XAMPP setup win32 Version                   #
 #-----------------------------------------------------------#
 #Copyright <c> 2002-2012 Apachefriends 1.7.7                #
 #-----------------------------------------------------------#
 # Authors: Kay Vogelgesang <kvo@apachefriends.org>          #
 #          Carsten Wiedmann <webmaster@wiedmann-online.de>  #
 #############################################################

  Configure for Version 1.7.7
  Configure XAMPP with awk for 'Windows_NT'
  Please wait...
  Enable AcceptEx Winsocks v2 support for NT systems   DONE!

  ##### Have fun with ApacheFriends XAMPP! #####

Press any key to continue
C:\xampp>



Is it possible I need to configure something in the file xampp\apache\conf\http.conf ??

Again, thanks for all the help so far,
Regards, Edmund
edmund
 
Posts: 3
Joined: 25. May 2012 20:23
Operating System: Windows XP Pro SP3 32bit

Re: Apache stops when using MS Loopback Adapter

Postby edmund » 27. May 2012 11:40

SOLVED (i think, well, sort of)
After several long, long days at the screen. It appears the problem lies in the Operating System, not the install settings.

It relates to the windows socket dll files and services.

I have since installed in Linux, took a total of 5 min and is up and running perfectly, so I think I'll stick to that OS.
It appears the only solution in Windows is to do a repair install or fresh install, I already did a sfc.exe and full system restore to no avail.

Thanks for the pointers
Edmund
edmund
 
Posts: 3
Joined: 25. May 2012 20:23
Operating System: Windows XP Pro SP3 32bit

Re: Apache stops when using MS Loopback Adapter

Postby Quax » 27. May 2012 16:40

You could also try a Repair of the Windows XP System.

To do a full Repair, boot with your XP CD, ignore the first option of Repair, use the second option, which come after the EULA Screen, the one where you'll have to hit F8. That will re-install the whole XP without to delete the installed Programs and Data. You'll need to have your CD-Key ready as well and will need to re-activate after the Repair.

That will gives you a clean install alike and you'll still have your Apps ready without the need of re-installation!
Weiterhin einen Guten Tag.

Quax, der Bruchpilot
User avatar
Quax
 
Posts: 15
Joined: 16. May 2012 08:42
Operating System: Windows Server 2003 Enterprise


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 66 guests