Что делать, если в xampp выдаёт ошибка при запуске apache?

0

Когда нажимаю на start выдаёт такую ошибку, что делать?

Error: Apache shutdown unexpectedly.
This may be due to a blocked port, missing dependencies,
improper privileges, a crash, or a shutdown by another method.
Press the Logs button to view error logs and check
the Windows Event Viewer for more clues
If you need more help, copy and post this
entire log window on the forums

php
mysql

3 ответов

0

1. This may be due to a blocked port, missing dependencies,

Какая-то программа блокирует порт на котором стартует Apache. Можно попробовать как в уроке настроить порт на 8080. Также, если уже ранее запущен Apache на каком-то порту, еще один экземпляр apache запустить, будет такая ошибка.

2. Press the Logs button to view error logs and check

Нужно нажать на Logs кнопку, чтобы посмотреть журнал ошибок. По ним можно понять, что пошло не так. Также помогает перезагрузка компа.

0

По логам вижу, что ругается на локальный SSL сертификат, который не нужен, вроде в уроке вместо 443 порта другой задается порт, скорее всего из-за этого ошибка.

0

Пробовал менять порт, не помогает. А в журнале Ошибок мне выдало вот это

[Thu Jan 21 01:14:52.130298 2021] [ssl:warn] [pid 10220:tid 264] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Jan 21 01:14:52.169300 2021] [ssl:warn] [pid 10220:tid 264] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Jan 21 01:14:52.193301 2021] [mpm_winnt:notice] [pid 10220:tid 264] AH00455: Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/8.0.1 configured -- resuming normal operations
[Thu Jan 21 01:14:52.193301 2021] [mpm_winnt:notice] [pid 10220:tid 264] AH00456: Apache Lounge VS16 Server built: Oct 2 2020 11:45:39
[Thu Jan 21 01:14:52.193301 2021] [core:notice] [pid 10220:tid 264] AH00094: Command line: 'c:\\xampp1\\apache\\bin\\httpd.exe -d C:/xampp1/apache'
[Thu Jan 21 01:14:52.199301 2021] [mpm_winnt:notice] [pid 10220:tid 264] AH00418: Parent: Created child process 10024
[Thu Jan 21 01:14:52.441315 2021] [ssl:warn] [pid 10024:tid 276] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Jan 21 01:14:52.473317 2021] [ssl:warn] [pid 10024:tid 276] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Jan 21 01:14:52.493318 2021] [mpm_winnt:notice] [pid 10024:tid 276] AH00354: Child: Starting 150 worker threads.
Sign up or Log in to write an answer