重新加载 apache2 配置时的 suhosin 加密错误
我安装了一个 Apache2 服务器,运行 php 和 suhosin。 php 会话由 Zend_Session 处理并存储在数据库中。 Suhosin 配置为在将会话数据保存到数据库之前对其进行加密。
虽然 apache2 在一切工作正常后运行
/etc/init.d/apache2 start
,直到我要求 apache2 重新加载,
/etc/init.d/apache2 reload
但似乎 suhosin 未正确加载,并且不再处理会话数据加密。
例如:
-before reload
mz0NTT8tcqaa4BIuBniVnVCMNjiwllLIds-cPt3KcMvyOHTktQmuYjgfAM3UMbVkVbsKnioUxPwjqaDIORSRlDnL5Q-W6iS8AoilOPwDUuUdtYjkbKskJpv62R9q
-after reload
language|a:2:{s:10:"locale";s:5:"en_EN";s:12:"language";s:2:"en";}
如果 apache 重新启动,会话数据将再次加密。
以下是我的操作系统、apache2、php 和 suhosin 的版本:
squeeze/sid
Server version: Apache/2.2.17 (Ubuntu)
Server built: Feb 22 2011 18:33:02
PHP 5.3.5-1ubuntu7.2 with Suhosin-Patch (cli) (built: May 2 2011 23:18:30)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans
with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH
有人遇到过同样的问题吗? 对此的任何帮助将不胜感激。
谢谢
I have a Apache2 server installed running with php and suhosin. The php session are handled with Zend_Session and stored in database. Suhosin is configured to encrypt session data before saving it to the database.
While apache2 is running after a
/etc/init.d/apache2 start
everything work fine until I ask apache2 to reload using
/etc/init.d/apache2 reload
It seems that suhosin is not loaded correctly, and does not handle session data encryption anymore.
eg:
-before reload
mz0NTT8tcqaa4BIuBniVnVCMNjiwllLIds-cPt3KcMvyOHTktQmuYjgfAM3UMbVkVbsKnioUxPwjqaDIORSRlDnL5Q-W6iS8AoilOPwDUuUdtYjkbKskJpv62R9q
-after reload
language|a:2:{s:10:"locale";s:5:"en_EN";s:12:"language";s:2:"en";}
if apache is restarted sessions data are crypted again.
Here are the versions og the OS, apache2, php and suhosin I have:
squeeze/sid
Server version: Apache/2.2.17 (Ubuntu)
Server built: Feb 22 2011 18:33:02
PHP 5.3.5-1ubuntu7.2 with Suhosin-Patch (cli) (built: May 2 2011 23:18:30)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans
with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH
Does anyone have faced the same issue?
Any help on this would be very appreciated.
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我终于找到了解决方案。我的 apache 配置了 suhosin 和 Xdebug。似乎停用 Xdebug 可以让 suhosin 在重新加载 apache 时正确重新加载。
I Finally found the solution. My apache was configured with suhosin and Xdebug. It seems that desactivating Xdebug allow suhosin to reload correctly while reloading apache.