XAMPP - 未配置会话缓存 [提示:SSLSessionCache]

2024-04-12php开发问题
0

本文介绍了XAMPP - 未配置会话缓存 [提示:SSLSessionCache]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

当我尝试使用 XAMPP 启动 Apache 服务器时,它主要显示以下内容:

When i am trying to start Apache server using XAMPP, it mainly says the following:

[Apache]   Check the "/xampp/apache/logs/error.log" file
[Apache]   and the Windows Event Viewer for more clues

我检查了错误日志,它说:

I checked the error log and it says:

"Session Cache is not configured"

完整的日志如下:

[ssl:warn] [pid 5008:tid 316] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[mpm_winnt:notice] [pid 5008:tid 316] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[mpm_winnt:notice] [pid 5008:tid 316] AH00456: Server built: Aug 18 2012 12:41:37
[core:notice] [pid 5008:tid 316] AH00094: Command line: 'c:\xampp\apache\bin\httpd.exe -d C:/xampp/apache'
[mpm_winnt:notice] [pid 5008:tid 316] AH00418: Parent: Created child process 1400
[ssl:warn] [pid 1400:tid 324] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[mpm_winnt:notice] [pid 1400:tid 324] AH00354: Child: Starting 150 worker threads.

推荐答案

找到解决方案:

这里是如何摆脱 XAMPP 中的 SSLSessionCache 消息的说明

Here are the instructions how to get rid of the SSLSessionCache message in XAMPP

1) 打开文件xamppapacheconfhttpd.conf

1) Open file xamppapacheconfhttpd.conf

2) 在 LoadModule 区域的某处添加以下行:

2) Somewhere in the LoadModule area add the following line:

LoadModule socache_shmcb_module modules/mod_socache_shmcb.so

3) 保存文件

4) 现在打开文件xamppapacheconfextrahttpd-ssl.conf

4) Now open file xamppapacheconfextrahttpd-ssl.conf

5) 在第 70 行添加该行

5) at line 70 add the line

SSLSessionCache "shmcb:logs/ssl_scache(512000)"

6) 保存文件

7) 重启 Apache

7) Restart Apache

这篇关于XAMPP - 未配置会话缓存 [提示:SSLSessionCache]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

PHP实现DeepL翻译API调用
DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以...
2025-08-20 php开发问题
168

PHP通过phpspreadsheet导入Excel日期数据处理方法
PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的...
2024-10-23 php开发问题
287

mediatemple - 无法使用 codeigniter 发送电子邮件
mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)...
2024-08-23 php开发问题
11

Laravel Gmail 配置错误
Laravel Gmail Configuration Error(Laravel Gmail 配置错误)...
2024-08-23 php开发问题
16

将 PHPMailer 用于 SMTP 的问题
Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)...
2024-08-23 php开发问题
4

关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题
Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)...
2024-08-23 php开发问题
17