什么可能导致ERR_CONNECTION_RESET错误,在XAMPP同时使用会话 [英] What may cause an ERR_CONNECTION_RESET error, on xampp while using session

查看:2055
本文介绍了什么可能导致ERR_CONNECTION_RESET错误,在XAMPP同时使用会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有XAMPP(Windows)中的问题在那里我有在session_start(); 在我的文件,但它这样的要求滴...

当我尝试用来访问本地主机网页/文件夹/的index.php 它的工作原理,但是当我尝试
外部IP /文件夹/的index.php 127.0.0.1/folder/index.php [:: 1] /folder/index.php 它只是丢弃连接(试过多种浏览器和Chrome提供了 ERR_CONNECTION_RESET ......我无言以对我迫切需要帮助...
它工作时,我删除在session_start(); 从我的文件...
当我做与新的文件在session_start(); 它仍然无法正常工作...

有些error.log中系

  [太阳19年1月10日:33:45.805036 2016年] [:错误] [PID 3176:TID 1888] [客户MYIP:50143]脚本'C:/ XAMPP / htdocs中/ h3x1t /i\\xc2\\xb4\\xc2\\xb4.php未找到或无法与stat
[太阳20年1月10日:02:40.330149 2016年] [SSL:警告] [PID 24588:TID 552] AH01909:www.example.com:443:0服务器证书不包括匹配的服务器名的ID
[太阳20年1月10日:02:40.373728 2016年] [mpm_winnt:声明] [PID 24588:TID 552] AH00354:儿童:启动150工作线程。
[太阳20年1月10日:04:25.949925 2016年] [mpm_winnt:声明] [PID 29460:TID 564] AH00428:家长:子进程24588退出,状态3221225477 - 重新启动。
[太阳20年1月10日:04:26.568746 2016年] [SSL:警告] [PID 29460:TID 564] AH01909:www.example.com:443:0服务器证书不包括匹配的服务器名的ID
[太阳20年1月10日:04:26.615700 2016年] [mpm_winnt:声明] [PID 29460:TID 564] AH00455:阿帕奇/ 2.4.18(Win32的)的OpenSSL / 1.0.2e PHP / 7.0.1配置 - 恢复正常运作
[太阳20年1月10日:04:26.615700 2016年] [mpm_winnt:声明] [PID 29460:TID 564] AH00456:Apache的休息室VC14 Server内置:2015年12月9日10点17分39秒
[太阳20年1月10日:04:26.615700 2016年] [核心:声明] [PID 29460:TID 564] AH00094:命令行:C:\\\\ \\\\ XAMPP阿帕奇\\\\ \\\\斌-d httpd.exe C:/ XAMPP /阿帕奇
[太阳20年1月10日:04:26.622190 2016年] [mpm_winnt:声明] [PID 29460:TID 564] AH00418:家长:创建子进程26200
[太阳20年1月10日:04:27.302705 2016年] [SSL:警告] [PID 26200:TID 560] AH01909:www.example.com:443:0服务器证书不包括匹配的服务器名的ID
[太阳20年1月10日:04:27.475560 2016年] [SSL:警告] [PID 26200:TID 560] AH01909:www.example.com:443:0服务器证书不包括匹配的服务器名的ID
[太阳20年1月10日:04:27.518770 2016年] [mpm_winnt:声明] [PID 26200:TID 560] AH00354:儿童:启动150工作线程。
[太阳20年1月10日:04:28.693791 2016年] [mpm_winnt:声明] [PID 29460:TID 564] AH00428:家长:子进程26200退出,状态3221225477 - 重新启动。
[太阳20年1月10日:04:29.379751 2016年] [SSL:警告] [PID 29460:TID 564] AH01909:www.example.com:443:0服务器证书不包括匹配的服务器名的ID
[太阳20年1月10日:04:29.425188 2016年] [mpm_winnt:声明] [PID 29460:TID 564] AH00455:阿帕奇/ 2.4.18(Win32的)的OpenSSL / 1.0.2e PHP / 7.0.1配置 - 恢复正常运作
[太阳20年1月10日:04:29.425188 2016年] [mpm_winnt:声明] [PID 29460:TID 564] AH00456:Apache的休息室VC14 Server内置:2015年12月9日10点17分39秒
[太阳20年1月10日:04:29.425188 2016年] [核心:声明] [PID 29460:TID 564] AH00094:命令行:C:\\\\ \\\\ XAMPP阿帕奇\\\\ \\\\斌-d httpd.exe C:/ XAMPP /阿帕奇
[太阳20年1月10日:04:29.430191 2016年] [mpm_winnt:声明] [PID 29460:TID 564] AH00418:家长:创建子进程30668
[太阳20年1月10日:04:30.081357 2016年] [SSL:警告] [PID 30668:TID 608] AH01909:www.example.com:443:0服务器证书不包括匹配的服务器名的ID
[太阳20年1月10日:04:30.254197 2016年] [SSL:警告] [PID 30668:TID 608] AH01909:www.example.com:443:0服务器证书不包括匹配的服务器名的ID
[太阳20年1月10日:04:30.297173 2016年] [mpm_winnt:声明] [PID 30668:TID 608] AH00354:儿童:启动150工作线程。
[太阳20年1月10日:06:24.444492 2016年] [:错误] [PID 30668:TID 1896年] [客户:: 1:60405]脚本'C:/xampp/htdocs/h3x1t/contracts.php未找到或无法统计,引用者:HTTP://本地主机/ h3x1t /指数


解决方案

我重新安装了XAMPP与旧的PHP版本...

看起来罪魁祸首PHP 7.0.0

编辑:找到东西可能链接到它
<一href=\"https://community.apachefriends.org/viewtopic.php?p=248070&sid=0b7559defe15317f41699d1ce9194e3f\" rel=\"nofollow\">https://community.apachefriends.org/viewtopic.php?p=248070&sid=0b7559defe15317f41699d1ce9194e3f

EDIT2:发现这(bitnami开发商)


  

我们已经检查XAMPP的结构,我们发现
  问题是关系到use_only_cookies变量,你可以找到在
  php.ini文件中的Session的部分。 Apache会崩溃,如果该
  use_only_cookies在会话的部分变量被设置为0和
  如果它设置为1,一切都很好。


  
  

http://php.net/manual/en/session.configuration.php#ini.session.use-only-cookies


  
  

我们还检查了use_strict_mode应设置为1


  
  

https://wiki.php.net/rfc/strict_sessions
  的http://php.net/manual/en/session.configuration.php#ini.session.use-strict-mode


  
  

我们会包括XAMPP的下一个版本的PHP 7这些变化。
  我们正与7.0.2版的建设安装,我们将
  尽快释放他们越好。


I have problem with xampp (Windows) where I have session_start(); in my file but it like drops that request...

When I try to access page with localhost/folder/index.php it works but when i try external ip/folder/index.php or 127.0.0.1/folder/index.php or [::1]/folder/index.php it just drops connection (tried multiple browsers and chrome gives ERR_CONNECTION_RESET... I am clueless and I desperately need help... It worked when I removed session_start(); from my file... When I make new file with session_start(); it still doesn't work...

Some error.log lines

[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

解决方案

I reinstalled xampp with older PHP Version...

Looks like culprit was PHP 7.0.0

EDIT: Found something probably linked to it https://community.apachefriends.org/viewtopic.php?p=248070&sid=0b7559defe15317f41699d1ce9194e3f

EDIT2: Found this (bitnami developers)

we have been checking the configuration of XAMPP and we found that the issue is related to the use_only_cookies variable that you can find in the Session's section of the php.ini file. Apache will crash if the use_only_cookies variable in the Session's section is set to 0 and everything is fine if it's set to 1.

http://php.net/manual/en/session.configuration.php#ini.session.use-only-cookies

We also checked that the use_strict_mode should be set to 1.

https://wiki.php.net/rfc/strict_sessions http://php.net/manual/en/session.configuration.php#ini.session.use-strict-mode

We'll include those changes in the next version of XAMPP with PHP 7. We are building the installers with the version 7.0.2 and we'll release them as soon as possible.

这篇关于什么可能导致ERR_CONNECTION_RESET错误,在XAMPP同时使用会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆