Apache stoppt sofort nach Start

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

Apache stoppt sofort nach Start

Postby sommerklang » 10. January 2020 11:36

Guten Tag,

da bisherige Topics zu diesem Thema keine Lösung brachten, versuche ich es neu ...

Habe gestern XAMPP installiert und konfiguriert. Klappte alles prima.
Heute stoppt Apache sofort nach dem Start über das Control Panel, MySQL startet normal.
Übliche Fehlerquellen: Skype ist nicht installiert, Dienste "IIS" und "W3C" sind deaktiviert.
Error.log hat für heute keine Einträge.

Hat jemand Tipps für mich?

Gruß & Dank
vom Sommerklang

---
Windows Version: 10 Home 64-bit
XAMPP Version: 7.3.13
Apache Version: 2.4.41
User avatar
sommerklang
 
Posts: 6
Joined: 10. January 2020 11:24
Location: Berlin
XAMPP version: 7.3.13
Operating System: Windows 10 Home 64-bit

Re: Apache stoppt sofort nach Start

Postby Altrea » 10. January 2020 12:21

Hallo,

Versuche doch bitte mal Apache über das apache_start.bat Script zu starten. Die dort erscheinenden Meldungen könnten zur Fehlersuche hilfreich sein.

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 stoppt sofort nach Start

Postby sommerklang » 11. January 2020 08:53

XAMPP now starts as a console application.

Instead of pressing Control-C in this console window, please use xampp_stop.exe
to stop XAMPP, because it lets XAMPP end any current transactions and cleanup
gracefully.

2020-01-11 8:52:08 0 [Note] Using unique option prefix 'key_buffer' is error-prone and can break in the future. Please use the full name 'key_buffer_size' instead.
2020-01-11 8:52:08 0 [Note] mysql\bin\mysqld.exe (mysqld 10.4.11-MariaDB) starting as process 10480 ...
httpd.exe: Syntax error on line 144 of C:/xampp/apache/conf/httpd.conf: Can't locate API module structure `php5_module' in file C:/xampp/php/php7apache2_4.dll: No error
User avatar
sommerklang
 
Posts: 6
Joined: 10. January 2020 11:24
Location: Berlin
XAMPP version: 7.3.13
Operating System: Windows 10 Home 64-bit

Re: Apache stoppt sofort nach Start

Postby nemesis » 11. January 2020 09:30

sommerklang wrote:httpd.exe: Syntax error on line 144 of C:/xampp/apache/conf/httpd.conf: Can't locate API module structure `php5_module' in file C:/xampp/php/php7apache2_4.dll: No error

Was steht da bei dir in der httpd.conf in dieser Zeile, plus die zwei davor und danach?
Ubuntu 18.04 | SMP P3 1.4 GHz | 6 GByte RegECC | 74 GByte Seagate 15k5 system | 3Ware 9550SXU-4LP with 4x 500 GByte Seagate ES2 Raid 10 data | StoreCase DE400 | PX-230A | Intel Pro/1000MT Dual PCI-X
User avatar
nemesis
AF Moderator
 
Posts: 1044
Joined: 29. December 2002 13:14
Location: Ingolstadt
XAMPP version: depends
Operating System: Linux, BSD, Win, iOS, Android

Re: Apache stoppt sofort nach Start

Postby sommerklang » 11. January 2020 09:37

LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule php5_module "c:/xampp/php/php7apache2_4.dll"
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so


Ich habe die PHP-Zeile manuell hinzugefügt, weil ich anfangs das Problem hatte, dass PHP-Dateien im Browser als Code dargestellt wurden.

Gruß & Dank
vom Sommerklang
User avatar
sommerklang
 
Posts: 6
Joined: 10. January 2020 11:24
Location: Berlin
XAMPP version: 7.3.13
Operating System: Windows 10 Home 64-bit

Re: Apache stoppt sofort nach Start

Postby nemesis » 11. January 2020 10:41

Lösch die Zeile bitte wieder. In PHP 7 ist kein PHP 5 enthalten...
Stell bitte sicher, dass deine php Dateien nicht als *.php.txt abgespeichert werden.

https://lmgtfy.com/?q=windows+explorer+dateiendungen+anzeigen
Ubuntu 18.04 | SMP P3 1.4 GHz | 6 GByte RegECC | 74 GByte Seagate 15k5 system | 3Ware 9550SXU-4LP with 4x 500 GByte Seagate ES2 Raid 10 data | StoreCase DE400 | PX-230A | Intel Pro/1000MT Dual PCI-X
User avatar
nemesis
AF Moderator
 
Posts: 1044
Joined: 29. December 2002 13:14
Location: Ingolstadt
XAMPP version: depends
Operating System: Linux, BSD, Win, iOS, Android

Re: Apache stoppt sofort nach Start

Postby sommerklang » 11. January 2020 11:27

Hallo,

Apache startet wieder, aber PHP-Dateien werden wieder nur als Code angezeigt.

Gruß & Dank
vom Sommerklang
User avatar
sommerklang
 
Posts: 6
Joined: 10. January 2020 11:24
Location: Berlin
XAMPP version: 7.3.13
Operating System: Windows 10 Home 64-bit

Re: Apache stoppt sofort nach Start

Postby sommerklang » 11. January 2020 11:29

Aufruf von localhost = file:///C:/xampp/htdocs/index.php führt zu

<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
$uri = 'https://';
} else {
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/dashboard/');
exit;
?>
Something is wrong with the XAMPP installation :-(
User avatar
sommerklang
 
Posts: 6
Joined: 10. January 2020 11:24
Location: Berlin
XAMPP version: 7.3.13
Operating System: Windows 10 Home 64-bit

Re: Apache stoppt sofort nach Start

Postby nemesis » 11. January 2020 11:43

Ubuntu 18.04 | SMP P3 1.4 GHz | 6 GByte RegECC | 74 GByte Seagate 15k5 system | 3Ware 9550SXU-4LP with 4x 500 GByte Seagate ES2 Raid 10 data | StoreCase DE400 | PX-230A | Intel Pro/1000MT Dual PCI-X
User avatar
nemesis
AF Moderator
 
Posts: 1044
Joined: 29. December 2002 13:14
Location: Ingolstadt
XAMPP version: depends
Operating System: Linux, BSD, Win, iOS, Android

Re: Apache stoppt sofort nach Start

Postby sommerklang » 12. January 2020 17:53

Hui, was für ein Anfängerfehler ;-) ... Asche auf mein Haupt!

DANKE! Thread kann als gelöst markiert werden.
User avatar
sommerklang
 
Posts: 6
Joined: 10. January 2020 11:24
Location: Berlin
XAMPP version: 7.3.13
Operating System: Windows 10 Home 64-bit


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 47 guests