выполнить другую версию xampp в Windows
Я установил xampp7.2.6 в D:\xampp, а затем установил xampp5.6.12 в D:\xampp5612 в Windows10. Когда я нажму, чтобы запустить apache xampp5, запустится apache xampp7.
В журнале отображается следующая ошибка, когда я выполняю xampp5612/xampp-xontrol.exe, прежде чем что-либо щелкнуть.
Apache Service detected with wrong path
Change XAMPP Apache and Control Panel settings or
Uninstall/disable the other service manually first
Found Path: "D:\xampp\apache\bin\httpd.exe" -k runservice
Expected Path: "d:\xampp5612\apache\bin\httpd.exe" -k runservice
Problem detected!
Port 80 in use by ""D:\xampp\apache\bin\httpd.exe" -k runservice" with PID 10428!
Apache WILL NOT start without the configured ports free!
You need to uninstall/disable/reconfigure the blocking application
or reconfigure Apache and the Control Panel to listen on a different port
Problem detected!
Port 443 in use by ""D:\xampp\apache\bin\httpd.exe" -k runservice" with PID 10428!
Apache WILL NOT start without the configured ports free!
You need to uninstall/disable/reconfigure the blocking application
or reconfigure Apache and the Control Panel to listen on a different port
MySQL Service detected with wrong path
Change XAMPP MySQL and Control Panel settings or
Uninstall/disable the other service manually first
Found Path: D:\xampp\mysql\bin\mysqld.exe --defaults-file=d:\xampp\mysql\bin\my.ini mysql
Expected Path: d:\xampp5612\mysql\bin\mysqld.exe --defaults-file=d:\xampp5612\mysql\bin\my.ini mysql
Как я могу исправить «Найденный путь» для запуска xampp5.6.12?
1 ответ
Простое решение этой проблемы — запустить Apache вручную. Найдите файл с именем, напримерD:\xampp5612
.
Если этот файл не существует, то вы можете просто создать соответствующий.bat
подать файл самостоятельно:
бывший.
apache_start.bat
(xampp)
@echo off
echo Please close this command only for Shutdown
echo Apache 2 is starting ...
D:\xampp5612\apache\bin\httpd.exe
if errorlevel 255 goto finish
if errorlevel 1 goto error
goto finish
:error
echo.
echo Apache could not be started
pause
:finish
Этот пакетный файл взят непосредственно из XAMPP с небольшими изменениями. Важная часть — указать правильный путь к
httpd.exe
(Апач).
Обратите внимание, что вам нужно будет держать командное окно, порожденное этим пакетным файлом, открытым до тех пор, пока вы хотите, чтобы Apache работал (т. е. закрытие окна приведет к завершению работы Apache). Вы, конечно, можете без проблем свернуть его (по желанию).