Major update 1.6.0a UPDATE bug. (apache service) [RESOLVED]

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

Major update 1.6.0a UPDATE bug. (apache service) [RESOLVED]

Postby Killerfrog » 01. March 2007 03:28

Hi,

I use Xampp for 3 years now. It's a great project and I always update the 1st or 2nd day a new version came out. This time, I'm unable to upgrade from 1.5.5 with a strange bug while trying to start apache as service (which I do for 3 years !!!). Can someone gimme help on this matter please ??

Thx

P.S. See the screenshot Image

P.S. with last version there was no error except an minor error about httpd.conf (whish is one done by xampp team and there still I use that version).

Thanks
Last edited by Killerfrog on 01. March 2007 06:25, edited 1 time in total.
Killerfrog
 
Posts: 75
Joined: 18. December 2004 21:16

Postby Wiedmann » 01. March 2007 04:30

Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Killerfrog » 01. March 2007 05:18

I don't read German :?

Are you sure it's the same bug ?
Killerfrog
 
Posts: 75
Joined: 18. December 2004 21:16

Postby Wiedmann » 01. March 2007 05:23

I don't read German

I think the commands in the code block are the same in every language.

BTW:
http://www.google.com/language_tools

Are you sure it's the same bug ?

Yes.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Killerfrog » 01. March 2007 05:39

my bug is nothing about MYSQL (such as the first post talk about), it's about Apache service that doesnt start after the update.

Also, even if I read those green boxes, it doesnt tell me wich one are related to my problem, if any.

At last, I did the google translate on the webpage, but translation was so bad, I wasn't able to understand more than 25 % of what was said.

The problem seem to be on Win 2000 and I use Win XP :(

that's bad there is not only one big forum in English... My first language is French, but I contribute to English forum because those can be read by many more people than French can be (should be same for any other language except English and Chineese !)
Killerfrog
 
Posts: 75
Joined: 18. December 2004 21:16

Postby Wiedmann » 01. March 2007 05:44

(such as the first post talk about) .. Also, even if I read those green boxes, it doesnt tell me wich one are related to my problem, if any.

Hm,
Wiedmann wrote:http://community.apachefriends.org/f/viewtopic.php?t=23243#96617

This is a link to thread id 23243 and post id 96617. Maybe the anchor (#) doesn't work correct in your browser?

Try this link:
http://community.apachefriends.org/f/viewtopi ... 6617#96617
(Only this post and commands are important for you)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Killerfrog » 01. March 2007 06:23

Thx for your help,

That was plenty helpfull.

For the record, Ive changed XAMPP\apache

apache_installservice.bat
Code: Select all
@echo off

if "%OS%" == "Windows_NT" goto WinNT

:Win9X
echo Don't be stupid! Win9x don't know Services
echo Please use apache_start.bat instead
goto exit

:WinNT
echo Installing Apache2 as an Service
bin\apache -k install -n Apache2
echo Now we Start Apache2 :)
net start Apache2

:exit
pause



and apache_uninstallservice.bat

Code: Select all
@echo off

if "%OS%" == "Windows_NT" goto WinNT

:Win9X
echo Don't be stupid! Win9x don't know Services
echo Please use apache_stop.bat instead
goto exit

:WinNT
echo Are you sure you wan't this?
echo now stopping Apache2 when it runs
net stop Apache2
echo Time to say good bye to Apache2 :(
bin\apache -k uninstall -n Apache2

:exit
pause


Good continuation to the project !
Killerfrog
 
Posts: 75
Joined: 18. December 2004 21:16

Postby vincentrich » 05. March 2007 03:03

I applied the service changes by KillerFrog and also added "Win32DisableAcceptEx" to my config file but Apache does not automatically load up when my Windows 2000 Server boots up.

My Event Viewer says:

Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7022
Date: 05/03/2007
Time: 09:34:13
User: N/A
Computer: MYPC
Description:
The Apache2.2 service hung on starting.

-----------------

Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7031
Date: 05/03/2007
Time: 09:34:54
User: N/A
Computer: MYPC
Description:
The Apache2.2 service terminated unexpectedly. It has done this 1 time(s). The following corrective action will be taken in 0 milliseconds: No action.

------------------

I can start the Apache service manually but not automatically. Any ideas?
vincentrich
 
Posts: 45
Joined: 19. January 2005 10:05
Location: Singapore

Postby Wiedmann » 05. March 2007 03:27

First execute the above batchfile "apache_uninstallservice.bat" (from Killerfrog)

Second execute the commands from my link above:
http://community.apachefriends.org/f/viewtopi ... 6617#96617
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby vincentrich » 06. March 2007 02:53

C:\Program Files\xampp\apache\bin>apache -k install -n Apache2
Installing the Apache2 service
The Apache2 service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
(OS 10048)Only one usage of each socket address (protocol/network address/port)
is normally permitted. : make_sock: could not bind to address 0.0.0.0:1234
no listening sockets available, shutting down
Unable to open logs

------------

I followed the command and this is what I got.
vincentrich
 
Posts: 45
Joined: 19. January 2005 10:05
Location: Singapore

Postby Wiedmann » 06. March 2007 03:10

You must first stop a current running server, and then use this command.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby vincentrich » 06. March 2007 04:23

Code: Select all
C:\Program Files\xampp\apache\bin>apache -k uninstall -n Apache2.2
[Tue Mar 06 11:21:17 2007] [error] (OS 2)The system cannot find the file specifi
ed.  : No installed service named "Apache2.2".

C:\Program Files\xampp\apache\bin>apache -k install -n Apache2
Installing the Apache2 service
The Apache2 service is successfully installed.
Testing httpd.conf....
[b]Errors reported here must be corrected before the service can be started.[/b]
[Tue Mar 06 11:21:21 2007] [notice] Disabled use of AcceptEx() WinSock2 API


Do you have any idea what the errors are? If I uninstall this service and manually launch the Apache to start, it works. Right now, Apache cannot start.
vincentrich
 
Posts: 45
Joined: 19. January 2005 10:05
Location: Singapore

Postby Wiedmann » 06. March 2007 04:26

Do you have any idea what the errors are?

I don't see any error...

Code: Select all
The Apache2 service is successfully installed.

And as you can see, the service is installed now.

Right now, Apache cannot start.

Why not? error message...
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby vincentrich » 06. March 2007 04:29

Code: Select all
[Tue Mar 06 09:54:10 2007] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Tue Mar 06 09:54:10 2007] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Tue Mar 06 09:54:11 2007] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Tue Mar 06 09:54:11 2007] [crit] (2)No such file or directory: unable to replace stderr with /dev/null


This is what I see in the Apache error.log file.

Code: Select all
Event Type:   Error
Event Source:   Service Control Manager
Event Category:   None
Event ID:   7031
Date:      06/03/2007
Time:      11:23:58
User:      N/A
Computer:   MYPC
Description:
The Apache2 service terminated unexpectedly.  It has done this 1 time(s).  The following corrective action will be taken in 0 milliseconds: No action.


This is what I see in the Windows 2000 Server event viewer.

This is kind of strange because XAMPP 1.5.x did not have this problem.
vincentrich
 
Posts: 45
Joined: 19. January 2005 10:05
Location: Singapore

Postby vincentrich » 06. March 2007 04:30

In the XAMPP Control Panel, Apache is not running. When I click on Start, the running word flashes for 1 sec and disappears.
vincentrich
 
Posts: 45
Joined: 19. January 2005 10:05
Location: Singapore

Next

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 119 guests