yum
在我更新 PHP 到 5.3.3之后,我无法登录任何 PHP 应用程序(phpmyadmin、mediaWiki)
我看过其他帖子,但似乎没有针对该问题的总体修复,有很多单独的修复,但我都没有成功。
我正在运行 CentOS 6.5,这些是我的会话变量,如所列php -i
session.auto_start => Off => Off
session.bug_compat_42 => Off => Off
session.bug_compat_warn => Off => Off
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_httponly => Off => Off
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_secure => Off => Off
session.entropy_file => no value => no value
session.entropy_length => 0 => 0
session.gc_divisor => 1000 => 1000
session.gc_maxlifetime => 1440 => 1440
session.gc_probability => 1 => 1
session.hash_bits_per_character => 5 => 5
session.hash_function => 0 => 0
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => /var/lib/php/session => /var/lib/php/session
session.serialize_handler => php => php
session.use_cookies => On => On
session.use_only_cookies => On => On
session.use_trans_sid => 0 => 0
这些是会议文件夹:
$ ls -la /var/lib/php
drwxrwxr-x 2 root apache 4096 Jan 14 11:28 session
我已经清空了该文件夹,因为我读到过旧的会话可能会导致问题。
我没有主动改变这些或其他php.ini设置、会话在更新后就停止工作。
更新:tail -f /var/log/httpd/error_log
当我尝试登录时,运行时出现此错误媒体维基
[Wed Jan 14 13:57:55 2015] [error] [client 82.35.29.174] PHP Warning:
Unknown: open(/var/lib/php/session/sess_dcd2969717a424ac082cab71376423f6, O_RDWR)
failed: Permission denied (13) in Unknown on line 0,
referer: [REMOVED BY OP]
[Wed Jan 14 13:57:55 2015] [error] [client 82.35.29.174] PHP Warning:
Unknown: Failed to write session data (files). Please verify that the current
setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0,
referer: [REMOVED BY OP]