2016-01-10 20 views
6

我有XAMPP(Windows)中的問題,我在我的文件中有session_start();,但這樣的要求滴什麼可能導致ERR_CONNECTION_RESET錯誤,在XAMPP ...同時使用會話

當我嘗試訪問頁面localhost/folder/index.php它的工作原理,但是當我嘗試 external ip/folder/index.php127.0.0.1/folder/index.php[::1]/folder/index.php它只是丟棄連接(試過多種瀏覽器和Chrome給人ERR_CONNECTION_RESET ......我無言以對,我迫切需要幫助...... 當我從文件中刪除session_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 
+0

你檢查過apache錯誤日誌嗎?它說什麼.. –

+0

編輯 - >一些錯誤日誌行。 – Entropy

+0

看來你試圖訪問一個網頁作爲文件.. C:/xampp/htdocs/h3x1t/contracts.php ... –

回答

4

我重新安裝了XAMPP與舊的PHP版本...

貌似罪魁禍首PHP 7.0.0

編輯:找到東西可能鏈接到它 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,我們會 儘快釋放它們。

6

我XAMPP與PHP7和同樣的問題...

我在php.ini改變: session.use_only_cookies從0到1,所有的作品。

+0

我已經鏈接了這個問題的答案與足夠的信息來解決它 - 但謝謝! – Entropy