如何让我的会话写入apache
2022-08-30 22:40:24
我最近切换了服务器,现在我的主页无法正常工作。它给出了以下文本:
Warning: session_start() [function.session-start]: open(/var/lib/php/session/sess_eqbchncji8kj22f0iqa9g3v7u2, O_RDWR) failed: Permission denied (13) in /var/www/vhosts/alt.alternativedc.com/httpdocs/index.php on line 6
Warning: Unknown: open(/var/lib/php/session/sess_eqbchncji8kj22f0iqa9g3v7u2, O_RDWR) failed: Permission denied (13) in Unknown on line 0
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
我以为这意味着会话文件夹不可写,所以我在ssh-ed进入服务器后运行了以下命令:
chmod o+rw /var/lib/php/session
这似乎并没有解决问题。不知道现在该怎么办...