Dzień dobry.
Mam zainstalowany XAMPP już od paru lat. Korzystam tylko z Apacha. Mam witrynę. Strony z rozszerzeniem php. PHP uczyłem się tylko do momentu, aż dodarłem do rzeczy, które były mi potrzebne na stronie. Pewnie dlatego teraz nie mogę sobie poradzić.
Gdy robię na komputerze nowe strony do witryny, korzystam z podglądu w przeglądarce internetowej. Odpaliłem stronę w przeglądarce i przypomniałem sobie, że XAMPP nie jest uruchomiony. XAMPP został uruchomiony prawie jednocześnie ze stroną i coś się popsuło.
Poniżej komunikaty z Panelu Kontrolnego:
11:23:09 [main] Initializing Control Panel
11:23:09 [main] Windows Version: Home 64-bit
11:23:09 [main] XAMPP Version: 7.1.4
11:23:09 [main] Control Panel Version: 3.2.2 [ Compiled: Nov 12th 2015 ]
11:23:09 [main] You are not running with administrator rights! This will work for
11:23:09 [main] most application stuff but whenever you do something with services
11:23:09 [main] there will be a security dialogue or things will break! So think
11:23:09 [main] about running this application with administrator rights!
11:23:09 [main] XAMPP Installation Directory: "c:\xampp\"
11:23:09 [main] Checking for prerequisites
11:23:09 [main] All prerequisites found
11:23:09 [main] Initializing Modules
11:23:09 [main] Starting Check-Timer
11:23:09 [main] Control Panel Ready
11:31:30 [Apache] Attempting to start Apache app...
11:31:31 [Apache] Status change detected: running
11:31:31 [Apache] Status change detected: stopped
11:31:31 [Apache] Error: Apache shutdown unexpectedly.
11:31:31 [Apache] This may be due to a blocked port, missing dependencies,
11:31:31 [Apache] improper privileges, a crash, or a shutdown by another method.
11:31:31 [Apache] Press the Logs button to view error logs and check
11:31:31 [Apache] the Windows Event Viewer for more clues
11:31:31 [Apache] If you need more help, copy and post this
11:31:31 [Apache] entire log window on the forums
Kiedyś, gdy pierwszy raz instalowałem ten server, sam go uruchomiłem i działał parę lat.
Odinstalowałem program, zainstalowałem jeszcze raz. Instalowałem wersję, którą używałem do tej pory i również najnowszą. Pierwszy raz XAMPP uruchamia się, ale strona w przeglądarce nie działa. Po drugim uruchomieniu servera w panelu kontrolnym pokazuje się błąd.
W httpd.conf.txt wprowadziłem takie same ustawienia, jak miałem poprzednio. Przed odinstalowaniem skopiowałem sobie pliki konfiguracyjne. Pliki strony mam na innym dysku niż XAMPP, ale wprowadziłem odpowiednią scieżkę w DocumentRoot "" i <Directory "">. Porty 80 i 443 są ustawione.
W plikach konfiguracyjnych nie widzę różnicy przed i po.
Po pierwszym uruchomieniu po instalacji XAMPP-a próbowałem otwierać pliki strony w różnych przeglądarkach i jest:
Not Found
The requested URL was not found on this server.
Apache/2.4.48 (Win64) OpenSSL/1.1.1k PHP/8.0.7 Server at localhost Port 80
Skończyły mi się już pomysły.
Dodam jeszcze error.log:
[Sat Jun 19 10:22:56.640780 2021] [ssl:warn] [pid 5996:tid 640] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jun 19 10:22:56.759911 2021] [ssl:warn] [pid 5996:tid 640] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jun 19 10:22:56.782785 2021] [mpm_winnt:notice] [pid 5996:tid 640] AH00455: Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/7.1.4 configured -- resuming normal operations
[Sat Jun 19 10:22:56.782785 2021] [mpm_winnt:notice] [pid 5996:tid 640] AH00456: Apache Lounge VC14 Server built: Dec 17 2016 10:42:52
[Sat Jun 19 10:22:56.782785 2021] [core:notice] [pid 5996:tid 640] AH00094: Command line: 'C:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Sat Jun 19 10:22:56.803461 2021] [mpm_winnt:notice] [pid 5996:tid 640] AH00418: Parent: Created child process 8016
[Sat Jun 19 10:22:57.383684 2021] [ssl:warn] [pid 8016:tid 680] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jun 19 10:22:57.514475 2021] [ssl:warn] [pid 8016:tid 680] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jun 19 10:22:57.549151 2021] [mpm_winnt:notice] [pid 8016:tid 680] AH00354: Child: Starting 150 worker threads.
[Sat Jun 19 10:23:35.569171 2021] [ssl:warn] [pid 10524:tid 636] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jun 19 10:23:35.735635 2021] [ssl:warn] [pid 10524:tid 636] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jun 19 10:23:35.763533 2021] [mpm_winnt:notice] [pid 10524:tid 636] AH00455: Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/7.1.4 configured -- resuming normal operations
[Sat Jun 19 10:23:35.763533 2021] [mpm_winnt:notice] [pid 10524:tid 636] AH00456: Apache Lounge VC14 Server built: Dec 17 2016 10:42:52
[Sat Jun 19 10:23:35.763533 2021] [core:notice] [pid 10524:tid 636] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Sat Jun 19 10:23:35.779128 2021] [mpm_winnt:notice] [pid 10524:tid 636] AH00418: Parent: Created child process 8500
[Sat Jun 19 10:23:36.648670 2021] [ssl:warn] [pid 8500:tid 672] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jun 19 10:23:36.802148 2021] [ssl:warn] [pid 8500:tid 672] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jun 19 10:23:36.846374 2021] [mpm_winnt:notice] [pid 8500:tid 672] AH00354: Child: Starting 150 worker threads.
Niestety, brakuje mi wiedzy, żeby sobie poradzić. Ta trona to tylko moje hobby, nie praca.
Będę wdzięczny za pomoc.
Ender