php 函数listen_ports()的参数太少?

qacovj5a  于 2023-03-28  发布在  PHP
关注(0)|答案(1)|浏览(127)

我刚刚安装了wampserver 64(v:wampserver3.2.6_x64)在window10和运行wampserver后,图标是绿色的,但没有连接到localhost.该页面花了太多的时间来加载,然后给一个响应

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

然后我在搜索栏中尝试“localhost”,它给了我以下错误x1c 0d1x

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.
v6ylcynt

v6ylcynt1#

我也遇到过同样的问题,我的解决方案是将add_vhost. php文件的第67行修改为:

$listenPort = listen_ports($c_ApacheDefine['APACHE_DIR'].'/conf/httpd.conf');

相关问题