Apache und mysql lässt sich nicht starten

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

Apache und mysql lässt sich nicht starten

Postby tiny » 09. February 2014 13:59

Hallo,
ich habe heute Xampp installiert und habe Probleme beim Starten von Apache und mysql.

Folgendes wird angezeigt:
3:23:08 [mysql] Attempting to start MySQL service...
13:23:09 [mysql] Status change detected: running
13:23:15 [mysql] Status change detected: stopped
13:23:15 [mysql] Error: MySQL shutdown unexpectedly.
13:23:15 [mysql] This may be due to a blocked port, missing dependencies,
13:23:15 [mysql] improper privileges, a crash, or a shutdown by another method.
13:23:15 [mysql] Press the Logs button to view error logs and check
13:23:15 [mysql] the Windows Event Viewer for more clues
13:23:15 [mysql] If you need more help, copy and post this
13:23:15 [mysql] entire log window on the forums
13:23:18 [Apache] Attempting to start Apache service...

Ich hatte auch schonmal die Firewall ausgeschaltet und es probiert. Hat aber auch nicht funktioniert. Wenn ich Apache error.log oder mysql error.log öffne wird nichts angezeigt. Port 443 wird von nichts belegt, falls das noch von Interesse ist.

Könnt ihr mir bitte helfen? Würde mich freuen.
tiny
 
Posts: 6
Joined: 09. February 2014 13:18
Operating System: Windows

Re: Apache und mysql lässt sich nicht starten

Postby Altrea » 09. February 2014 15:55

Hallk tiny,

tiny wrote:13:23:15 [mysql] If you need more help, copy and post this
13:23:15 [mysql] entire log window on the forums

entire beginnt bei der Zeile
Code: Select all
[main] Initializing Control Panel

nicht bei
Code: Select all
[mysql] Attempting to start MySQL service...


mit freundlichen Grüßen,
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

Re: Apache und mysql lässt sich nicht starten

Postby tiny » 09. February 2014 16:03

Sorry, das hatte ich nicht gesehen, ich habe es so oft probiert, dass der ganze Text sehr lang ist. Also nicht wundern.
Bitte:
Initializing Control Panel
12:34:35 [main] Windows Version: Windows 7 Professional SP1 32-bit
12:34:35 [main] XAMPP Version: 1.8.3
12:34:35 [main] Control Panel Version: 3.2.1 [ Compiled: May 7th 2013 ]
12:34:35 [main] Running with Administrator rights - good!
12:34:35 [main] XAMPP Installation Directory: "c:\users\björn\desktop\xampp\"
12:34:35 [main] Checking for prerequisites
12:34:35 [main] All prerequisites found
12:34:35 [main] Initializing Modules
12:34:35 [main] Starting Check-Timer
12:34:35 [main] Control Panel Ready
12:34:43 [Apache] Attempting to start Apache app...
12:34:43 [Apache] Status change detected: running
12:34:44 [Apache] Status change detected: stopped
12:34:44 [Apache] Error: Apache shutdown unexpectedly.
12:34:44 [Apache] This may be due to a blocked port, missing dependencies,
12:34:44 [Apache] improper privileges, a crash, or a shutdown by another method.
12:34:44 [Apache] Press the Logs button to view error logs and check
12:34:44 [Apache] the Windows Event Viewer for more clues
12:34:44 [Apache] If you need more help, copy and post this
12:34:44 [Apache] entire log window on the forums
12:34:45 [mysql] Attempting to start MySQL app...
12:34:45 [mysql] Status change detected: running
12:34:46 [mysql] Status change detected: stopped
12:34:46 [mysql] Error: MySQL shutdown unexpectedly.
12:34:46 [mysql] This may be due to a blocked port, missing dependencies,
12:34:46 [mysql] improper privileges, a crash, or a shutdown by another method.
12:34:46 [mysql] Press the Logs button to view error logs and check
12:34:46 [mysql] the Windows Event Viewer for more clues
12:34:46 [mysql] If you need more help, copy and post this
12:34:46 [mysql] entire log window on the forums
12:37:06 [Apache] Installing service...
12:37:07 [Apache] Successful!
12:37:10 [mysql] Installing service...
12:37:10 [mysql] Successful!
12:37:14 [filezilla] Setting Service Name...
12:37:15 [filezilla] Setting Service Display Name...
12:37:15 [filezilla] Installing service...
12:37:15 [filezilla] Successful!
12:37:20 [Apache] Attempting to start Apache service...
12:37:21 [mysql] Attempting to start MySQL service...
12:37:22 [mysql] Status change detected: running
12:37:28 [mysql] Status change detected: stopped
12:37:28 [mysql] Error: MySQL shutdown unexpectedly.
12:37:28 [mysql] This may be due to a blocked port, missing dependencies,
12:37:28 [mysql] improper privileges, a crash, or a shutdown by another method.
12:37:28 [mysql] Press the Logs button to view error logs and check
12:37:28 [mysql] the Windows Event Viewer for more clues
12:37:28 [mysql] If you need more help, copy and post this
12:37:28 [mysql] entire log window on the forums
12:38:06 [Apache] Attempting to start Apache service...
13:08:20 [Apache] Attempting to start Apache service...
13:08:29 [mysql] Attempting to start MySQL service...
13:08:29 [mysql] Status change detected: running
13:08:35 [mysql] Status change detected: stopped
13:08:35 [mysql] Error: MySQL shutdown unexpectedly.
13:08:35 [mysql] This may be due to a blocked port, missing dependencies,
13:08:35 [mysql] improper privileges, a crash, or a shutdown by another method.
13:08:35 [mysql] Press the Logs button to view error logs and check
13:08:35 [mysql] the Windows Event Viewer for more clues
13:08:35 [mysql] If you need more help, copy and post this
13:08:35 [mysql] entire log window on the forums
13:08:57 [mysql] Attempting to start MySQL service...
13:08:57 [mysql] Status change detected: running
13:09:03 [mysql] Status change detected: stopped
13:09:03 [mysql] Error: MySQL shutdown unexpectedly.
13:09:03 [mysql] This may be due to a blocked port, missing dependencies,
13:09:03 [mysql] improper privileges, a crash, or a shutdown by another method.
13:09:03 [mysql] Press the Logs button to view error logs and check
13:09:03 [mysql] the Windows Event Viewer for more clues
13:09:03 [mysql] If you need more help, copy and post this
13:09:03 [mysql] entire log window on the forums
13:22:29 [mysql] Attempting to start MySQL service...
13:22:29 [mysql] Status change detected: running
13:22:35 [mysql] Status change detected: stopped
13:22:35 [mysql] Error: MySQL shutdown unexpectedly.
13:22:35 [mysql] This may be due to a blocked port, missing dependencies,
13:22:35 [mysql] improper privileges, a crash, or a shutdown by another method.
13:22:35 [mysql] Press the Logs button to view error logs and check
13:22:35 [mysql] the Windows Event Viewer for more clues
13:22:35 [mysql] If you need more help, copy and post this
13:22:35 [mysql] entire log window on the forums
13:23:08 [mysql] Attempting to start MySQL service...
13:23:09 [mysql] Status change detected: running
13:23:15 [mysql] Status change detected: stopped
13:23:15 [mysql] Error: MySQL shutdown unexpectedly.
13:23:15 [mysql] This may be due to a blocked port, missing dependencies,
13:23:15 [mysql] improper privileges, a crash, or a shutdown by another method.
13:23:15 [mysql] Press the Logs button to view error logs and check
13:23:15 [mysql] the Windows Event Viewer for more clues
13:23:15 [mysql] If you need more help, copy and post this
13:23:15 [mysql] entire log window on the forums
13:23:18 [Apache] Attempting to start Apache service...
tiny
 
Posts: 6
Joined: 09. February 2014 13:18
Operating System: Windows

Re: Apache und mysql lässt sich nicht starten

Postby Altrea » 09. February 2014 16:32

Okay, als erstes entfernst du wieder die Windows Services die du für Apache und MySQL gesetzt hast.
Ich denke, du hast ein Pfad-Problem. "c:\users\björn\desktop\xampp\" ist kein geeigneter Pfad für eine XAMPP installation.
Solltest du den Installer und nicht die zip oder 7z Version verwendet haben, deinstalliere XAMPP bitte komplett.
Anschließend installiere es neu unter dem Pfad C:\xampp\
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

Re: Apache und mysql lässt sich nicht starten

Postby tiny » 09. February 2014 21:35

So, ich habe alles deinstalliert und nochmal installiert und darauf geachtet, dass alles am richtigen Platz ist. Habe darauf geachtet, dass alle alten dateien auch wirklich verschwunden sind. Musste auch die Pfade in der Registry ändern, weil da noch der alte Pfad angegeben war. Naja jetzt geht es fast.
21:26:27 [main] Initializing Control Panel
21:26:27 [main] Windows Version: Windows 7 Professional SP1 32-bit
21:26:27 [main] XAMPP Version: 1.8.3
21:26:27 [main] Control Panel Version: 3.2.1 [ Compiled: May 7th 2013 ]
21:26:27 [main] Running with Administrator rights - good!
21:26:27 [main] XAMPP Installation Directory: "c:\xampp\"
21:26:27 [main] Checking for prerequisites
21:26:27 [main] All prerequisites found
21:26:27 [main] Initializing Modules
21:26:27 [main] Starting Check-Timer
21:26:27 [main] Control Panel Ready
21:26:40 [Apache] Attempting to start Apache service...
21:26:43 [Apache] Status change detected: running
21:26:43 [Apache] Status change detected: stopped
21:26:43 [Apache] Error: Apache shutdown unexpectedly.
21:26:43 [Apache] This may be due to a blocked port, missing dependencies,
21:26:43 [Apache] improper privileges, a crash, or a shutdown by another method.
21:26:43 [Apache] Press the Logs button to view error logs and check
21:26:43 [Apache] the Windows Event Viewer for more clues
21:26:43 [Apache] If you need more help, copy and post this
21:26:43 [Apache] entire log window on the forums
21:27:09 [mysql] Attempting to start MySQL service...
21:27:10 [mysql] Status change detected: running

Mir ist aufgefallen, dass bei mysql der Button Admin quasi aktiv ist und bei Apache könnte ich ihn nicht drücken. Ich weiß nicht, ob das von Bedeutung ist.
tiny
 
Posts: 6
Joined: 09. February 2014 13:18
Operating System: Windows

Re: Apache und mysql lässt sich nicht starten

Postby Altrea » 09. February 2014 21:37

Gut, nächster Schritt wäre das Ausführen des Scripts \xampp\apache_start.bat.
Die Rückgabe dessen wird uns wichtige Hinweise über die Ursache geben.

Die Admin Buttons im control panel werden erst aktiv, wenn eine Komponente gestartet werden konnte.
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

Re: Apache und mysql lässt sich nicht starten

Postby tiny » 09. February 2014 22:08

Es kommt:
Diese Eingabeforderung nicht waehrend des Runnings beenden
Bitte erst bei einem gewollten Shutdown schliessen
Please close this command only for Shutdown
Apache 2 is starting ...
httpd.exe: Syntax error on line 72 of C:/xampp/apache/conf/httpd.conf: Cannot load modules/mod_access_compat.so into server: Das angegebene Modul wurde nicht gefunden.

Apache konnte nicht gestartet werden
Apache could not be started
Drücken Sie eine beliebige Taste
tiny
 
Posts: 6
Joined: 09. February 2014 13:18
Operating System: Windows

Re: Apache und mysql lässt sich nicht starten

Postby Altrea » 09. February 2014 22:21

Bitte überprüfe dass die Datei \xampp\apache\modules\mod_access_compat.so existiert.
Ist dies der Fall bitte überprüfe ob in der Datei \xampp\apache\conf\httpd.conf der Parameter "ServerRoot" korrekt gesetzt ist (ServerRoot "C:/xampp/apache")
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

Re: Apache und mysql lässt sich nicht starten

Postby tiny » 12. February 2014 00:55

Die Datei xampp\apache\modules\mod_access_combat.so ist nicht vorhanden.

Und mal nebenbei, wie könnte ich denn sehen wie der ServerRoot bei der Datei \xampp\apache\conf\httpd.conf korrekt gesetzt ist?
tiny
 
Posts: 6
Joined: 09. February 2014 13:18
Operating System: Windows

Re: Apache und mysql lässt sich nicht starten

Postby Altrea » 12. February 2014 06:01

tiny wrote:Die Datei xampp\apache\modules\mod_access_combat.so ist nicht vorhanden.

Dann ist deine XAMPP Installation auch nicht vollständig. Daher wäre die empfohlene Vrgehensweise XAMPP komplett deinstallieren und neuinstallieren.

tiny wrote:Und mal nebenbei, wie könnte ich denn sehen wie der ServerRoot bei der Datei \xampp\apache\conf\httpd.conf korrekt gesetzt ist?

Ich habe es dir in Klammern mit dabei geschrieben. Der Pfad verweist auf das den Pfad in dem sich Apache befindet. ServerRoot fungiert für viele andere Parameter als Basisverzeichnis und sollte daher immer korrekt gesetzt sein. XAMPP setzt diesen Pfad in der Installation auch selbst, bzw. durch ausführen des Scriptes setup_xampp.bat.
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

Re: Apache und mysql lässt sich nicht starten

Postby tiny » 12. February 2014 12:24

Also ich habe es nochmal installiert und tatsächlich funktioniert jetzt alles. Obwohl ich so oft installiert und deinstalliert und wieder installiert hatte. Egal, es funktioniert. Super! Vielen Dank!
tiny
 
Posts: 6
Joined: 09. February 2014 13:18
Operating System: Windows


Return to XAMPP für Windows

Who is online

Users browsing this forum: CptEureka and 32 guests