Php 在使用会话时,什么可能导致xampp上的ERR\u连接\u重置错误

Php 在使用会话时,什么可能导致xampp上的ERR\u连接\u重置错误,php,windows,apache,session,xampp,Php,Windows,Apache,Session,Xampp,我在xampp(Windows)中遇到了问题,其中我有session_start()在我的文件中,但它似乎删除了该请求 当我尝试使用localhost/folder/index.php访问页面时,它会工作,但当我尝试 external ip/folder/index.php或127.0.0.1/folder/index.php或[::1]/folder/index.php它只是断开了连接(尝试了多个浏览器,chrome给出了错误连接重置…我不知所措,急需帮助。。。 当我从我的文件中删除会话_st

我在xampp(Windows)中遇到了问题,其中我有
session_start()在我的文件中,但它似乎删除了该请求

当我尝试使用
localhost/folder/index.php
访问页面时,它会工作,但当我尝试
external ip/folder/index.php
127.0.0.1/folder/index.php
[::1]/folder/index.php
它只是断开了连接(尝试了多个浏览器,chrome给出了
错误连接重置
…我不知所措,急需帮助。。。 当我从我的文件中删除
会话_start();
时,它起作用了。。。 当我使用
session_start();
创建新文件时,它仍然无法工作

一些error.log行

[Sun Jan 10 19:33:45.805036 2016] [:error] [pid 3176:tid 1888] [client myip:50143] script 'C:/xampp/htdocs/h3x1t/i\xc2\xb4\xc2\xb4.php' not found or unable to stat
[Sun Jan 10 20:02:40.330149 2016] [ssl:warn] [pid 24588:tid 552] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 10 20:02:40.373728 2016] [mpm_winnt:notice] [pid 24588:tid 552] AH00354: Child: Starting 150 worker threads.
[Sun Jan 10 20:04:25.949925 2016] [mpm_winnt:notice] [pid 29460:tid 564] AH00428: Parent: child process 24588 exited with status 3221225477 -- Restarting.
[Sun Jan 10 20:04:26.568746 2016] [ssl:warn] [pid 29460:tid 564] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 10 20:04:26.615700 2016] [mpm_winnt:notice] [pid 29460:tid 564] AH00455: Apache/2.4.18 (Win32) OpenSSL/1.0.2e PHP/7.0.1 configured -- resuming normal operations
[Sun Jan 10 20:04:26.615700 2016] [mpm_winnt:notice] [pid 29460:tid 564] AH00456: Apache Lounge VC14 Server built: Dec  9 2015 10:17:39
[Sun Jan 10 20:04:26.615700 2016] [core:notice] [pid 29460:tid 564] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Sun Jan 10 20:04:26.622190 2016] [mpm_winnt:notice] [pid 29460:tid 564] AH00418: Parent: Created child process 26200
[Sun Jan 10 20:04:27.302705 2016] [ssl:warn] [pid 26200:tid 560] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 10 20:04:27.475560 2016] [ssl:warn] [pid 26200:tid 560] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 10 20:04:27.518770 2016] [mpm_winnt:notice] [pid 26200:tid 560] AH00354: Child: Starting 150 worker threads.
[Sun Jan 10 20:04:28.693791 2016] [mpm_winnt:notice] [pid 29460:tid 564] AH00428: Parent: child process 26200 exited with status 3221225477 -- Restarting.
[Sun Jan 10 20:04:29.379751 2016] [ssl:warn] [pid 29460:tid 564] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 10 20:04:29.425188 2016] [mpm_winnt:notice] [pid 29460:tid 564] AH00455: Apache/2.4.18 (Win32) OpenSSL/1.0.2e PHP/7.0.1 configured -- resuming normal operations
[Sun Jan 10 20:04:29.425188 2016] [mpm_winnt:notice] [pid 29460:tid 564] AH00456: Apache Lounge VC14 Server built: Dec  9 2015 10:17:39
[Sun Jan 10 20:04:29.425188 2016] [core:notice] [pid 29460:tid 564] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Sun Jan 10 20:04:29.430191 2016] [mpm_winnt:notice] [pid 29460:tid 564] AH00418: Parent: Created child process 30668
[Sun Jan 10 20:04:30.081357 2016] [ssl:warn] [pid 30668:tid 608] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 10 20:04:30.254197 2016] [ssl:warn] [pid 30668:tid 608] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jan 10 20:04:30.297173 2016] [mpm_winnt:notice] [pid 30668:tid 608] AH00354: Child: Starting 150 worker threads.
[Sun Jan 10 20:06:24.444492 2016] [:error] [pid 30668:tid 1896] [client ::1:60405] script 'C:/xampp/htdocs/h3x1t/contracts.php' not found or unable to stat, referer: http://localhost/h3x1t/index

我用旧的PHP版本重新安装了xampp

看起来凶手是PHP7.0.0

编辑:找到可能与之相关的内容

EDIT2:找到了这个(bitnami开发者)

我们一直在检查XAMPP的配置,发现 该问题与您可以在中找到的use_only_cookies变量有关 如果 仅使用会话部分中的\u cookies变量设置为0,并且 如果设置为1,则一切正常

我们还检查了use_strict_模式是否应设置为1

我们将在使用PHP7的下一版本XAMPP中包含这些更改。 我们正在使用7.0.2版构建安装程序,我们将 尽快释放它们


我有PHP7的XAMPP和同样的问题

我在php.ini中更改了:
session.use_only_Cookie从0到1,一切正常。

在我的例子中,Windows事件查看器显示了更多有用的数据。它指向VCRUNTIME140.dll,不断使Apache崩溃(这导致控制台显示ERR_CONNECTION_RESET),所以我将库更新为-然后,它将出错模块显示为php7ts.dll-所以我按照的说明进行了操作,很好。

你检查了apache错误日志了吗?它说什么..编辑->一些错误日志行。似乎你试图以文件的形式访问网页..C:/xampp/htdocs/h3x1t/contracts.php…尝试以我从未尝试过的网页形式访问我认为…当我访问127.0.0.1或我的外部IP(打开的端口)时,它不工作…只有通过本地主机…我重新安装了PHP(我有PHP7.0.0)它正在工作…我猜这是PHP7.0.0的问题…我已经用足够的信息链接了这个问题的答案来解决它-但是谢谢!我在从xamp5.6升级到7.1后在windows上遇到了同样的问题,从那时起,所有的concurent请求都开始失败。设置“仅使用cookies”真的帮了我的忙,尽管我从“1”改为“0”:)将其从1改为0,这实际上在7.1.33:D对我有所帮助