Apache running > stopped ohne logs

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

Apache running > stopped ohne logs

Postby Change » 11. September 2023 18:41

Hey ihr,

habe ein ganz seltsames Verhalten.
Vor 2 Tagen hat noch alles geklappt, nun, wenn ich versuche den Apache Server zu starten, stoppt dieser instant wieder. Manchmal steht da auch nur "Attempting to start" und es passiert nichts.

Code: Select all
19:02:26  [Apache]    Attempting to start Apache app...
19:02:26  [Apache]    Status change detected: running
19:02:26  [Apache]    Status change detected: stopped
19:02:26  [Apache]    Error: Apache shutdown unexpectedly.
19:02:26  [Apache]    This may be due to a blocked port, missing dependencies,
19:02:26  [Apache]    improper privileges, a crash, or a shutdown by another method.
19:02:26  [Apache]    Press the Logs button to view error logs and check
19:02:26  [Apache]    the Windows Event Viewer for more clues
19:02:26  [Apache]    If you need more help, copy and post this
19:02:26  [Apache]    entire log window on the forums


error.log, noch access.log sind leer, keine Einträge. Wie finde ich heraus, woran das Problem liegt?

-> XAMPP Control Panel v3.3.0 || Apache/2.4.56 (Win64) ||
-> XAMPP Control Panel als Administrator gestartet
-> Antivirus-Programm pausiert
-> Firewall überprüft
-> Computer neugestartet

Länger Verlauf-Log mit erweiterten debug informationen.
Start von Apache > keine Reaktion
Start von mysql > keine Reaktion
Erneuter Start von mysql > gestartet
Start Apache > keine Reaktion
Start Apache > keine Reaktion
Start Apache > keine Reaktion
Start Apache > running mit instant shutdown

Code: Select all
19:37:13  [main]    Initializing Control Panel
19:37:13  [main]    Windows Version:  Enterprise  64-bit
19:37:13  [main]    XAMPP Version: 8.2.4
19:37:13  [main]    Control Panel Version: 3.3.0  [ Compiled: Apr 6th 2021 ]
19:37:13  [main]    Running with Administrator rights - good!
19:37:13  [main]    XAMPP Installation Directory: "c:\xampp\"
19:37:13  [main]    Checking for prerequisites
19:37:13  [main]    All prerequisites found
19:37:13  [main]    Initializing Modules
19:37:13  [Apache]    Initializing module...
19:37:13  [Apache]    Checking for module existence...
19:37:13  [Apache]    Checking for required tools...
19:37:13  [Apache]    Checking for service (name="Apache2.4"): Service not installed
19:37:13  [Apache]    Service Path: Service Not Installed
19:37:13  [Apache]    Checking default ports...
19:37:13  [mysql]    Initializing module...
19:37:13  [mysql]    Checking for module existence...
19:37:13  [mysql]    Checking for required tools...
19:37:13  [mysql]    Checking for service (name="mysql"): Service not installed
19:37:13  [mysql]    Service Path: Service Not Installed
19:37:13  [mysql]    Checking default ports...
19:37:13  [filezilla]    Initializing module...
19:37:13  [filezilla]    Checking for module existence...
19:37:13  [filezilla]    Checking for required tools...
19:37:13  [filezilla]    Checking for service (name="FileZillaServer"): Service not installed
19:37:13  [filezilla]    Service Path: Service Not Installed
19:37:13  [filezilla]    Checking default ports...
19:37:13  [main]    The Mercury module is disabled
19:37:13  [main]    The Tomcat module is disabled
19:37:13  [main]    Starting Check-Timer
19:37:13  [main]    Control Panel Ready
19:37:26  [Apache]    Checking default ports...
19:37:26  [Apache]    Attempting to start Apache app...
19:37:26  [Apache]    Executing "c:\xampp\apache\bin\httpd.exe"
19:37:26  [Apache]    Return code: 0
19:37:37  [mysql]    Checking default ports...
19:37:37  [mysql]    Attempting to start MySQL app...
19:37:37  [mysql]    Executing ""c:\xampp\mysql\bin\mysqld.exe" --defaults-file="c:\xampp\mysql\bin\my.ini" --standalone"
19:37:37  [mysql]    Return code: 0
19:37:45  [mysql]    Checking default ports...
19:37:45  [mysql]    Attempting to start MySQL app...
19:37:45  [mysql]    Executing ""c:\xampp\mysql\bin\mysqld.exe" --defaults-file="c:\xampp\mysql\bin\my.ini" --standalone"
19:37:45  [mysql]    Return code: 0
19:37:45  [mysql]    Status change detected: running
19:37:51  [Apache]    Checking default ports...
19:37:51  [Apache]    Attempting to start Apache app...
19:37:51  [Apache]    Executing "c:\xampp\apache\bin\httpd.exe"
19:37:51  [Apache]    Return code: 0
19:37:54  [Apache]    Checking default ports...
19:37:54  [Apache]    Attempting to start Apache app...
19:37:54  [Apache]    Executing "c:\xampp\apache\bin\httpd.exe"
19:37:54  [Apache]    Return code: 0
19:37:56  [Apache]    Checking default ports...
19:37:56  [Apache]    Attempting to start Apache app...
19:37:56  [Apache]    Executing "c:\xampp\apache\bin\httpd.exe"
19:37:56  [Apache]    Return code: 0
19:37:56  [Apache]    Status change detected: running
19:37:57  [Apache]    Status change detected: stopped
19:37:57  [Apache]    Error: Apache shutdown unexpectedly.
19:37:57  [Apache]    This may be due to a blocked port, missing dependencies,
19:37:57  [Apache]    improper privileges, a crash, or a shutdown by another method.
19:37:57  [Apache]    Press the Logs button to view error logs and check
19:37:57  [Apache]    the Windows Event Viewer for more clues
19:37:57  [Apache]    If you need more help, copy and post this
19:37:57  [Apache]    entire log window on the forums
Change
 
Posts: 20
Joined: 02. January 2012 10:37
Operating System: Windows Vista Home Premium 32B

Re: Apache running > stopped ohne logs

Postby Nobbie » 11. September 2023 19:00

Wenn gar nichts anderes geht, in einer CMD-Shell mal Apache händisch starten via:

c:\xampp\apache\bin\httpd.exe

Da sollte dann etwas mehr zu lesen sein, woran das Problem liegt.
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04

Re: Apache running > stopped ohne logs

Postby Change » 13. September 2023 19:19

Vielen Dank für den Tipp.

In der Tat bekomme ich hier mehr Infos:

C:\xampp\apache\bin>httpd.exe
AH00548: NameVirtualHost has no effect and will be removed in the next release C:/xampp/apache/conf/extra/httpd-vhosts.conf:44
AH00526: Syntax error on line 48 of C:/xampp/apache/conf/extra/httpd-vhosts.conf:
DocumentRoot must be a directory

Nach weiterer Recherche habe ich herausgefunden, dass es lediglich der Backslash am Ende des DocumentRoots war ...
Also
Code: Select all
DocumentRoot "C:\xampp\htdocs"
anstatt
Code: Select all
DocumentRoot "C:\xampp\htdocs\"

Oh man ...
Change
 
Posts: 20
Joined: 02. January 2012 10:37
Operating System: Windows Vista Home Premium 32B

Re: Apache running > stopped ohne logs

Postby Nobbie » 13. September 2023 19:26

Aus dem Grund empfehle ich grundsätzlich nur Slash "/" zu benutzen, das funktioniert auch unter Windows (das ist sogar im Kernel so einprogrammiert). Denn der Backslash ist auch in PHP ein Metazeichen (und auch in Apache Konfiguration).
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 145 guests