我刚刚在 window10 上安装了 wampserver64 (v: wampserver3.2.6_x64),运行 wampserver 后,图标是绿色的,但没有连接到本地主机。 页面加载时间过长然后给了回复
This site can’t be reached
The connection was reset.
Try:
Checking the connection
Checking the proxy and the firewall
Running Windows Network Diagnostics
ERR_CONNECTION_RESET
Fatal error: Uncaught ArgumentCountError: Too few arguments to function listen_ports(), 0 passed in C:\wamp64\www\index.php on line 40 and exactly 1 expected in C:\wamp64\scripts\wampserver.lib.php on line 529
请帮助我。我已将端口 80 更改为 8080 但同样的错误。谢谢!
附加信息
[Sun Apr 10 11:50:51.558506 2022] [mpm_winnt:notice] [pid 12492:tid 732] AH00455: Apache/2.4.51 (Win64) PHP/7.4.26 configured -- resuming normal operations
[Sun Apr 10 11:50:51.559506 2022] [mpm_winnt:notice] [pid 12492:tid 732] AH00456: Apache Lounge VS16 Server built: Oct 7 2021 16:27:02
[Sun Apr 10 11:50:51.559506 2022] [core:notice] [pid 12492:tid 732] AH00094: Command line: 'c:\\wamp64\\bin\\apache\\apache2.4.51\\bin\\httpd.exe -d C:/wamp64/bin/apache/apache2.4.51'
[Sun Apr 10 11:50:51.561505 2022] [mpm_winnt:notice] [pid 12492:tid 732] AH00418: Parent: Created child process 8064
[Sun Apr 10 11:50:52.659822 2022] [mpm_winnt:notice] [pid 8064:tid 700] AH00354: Child: Starting 64 worker threads.
我遇到了同样的问题。我的解决方案是将 add_vhost.php 文件的第 67 行更改为:
$listenPort = listen_ports($c_ApacheDefine['APACHE_DIR'].'/conf/httpd.conf');