这几天我的博客所在的IDC很不给力,让我的vps挂了很多次,好在数据都还在。恢复的时候出现了如下错误。

Warning: Unknown: open(/tmp/sess_dda1513970d8d27fb49e597777de0b41, 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 () in Unknown on line 0

解决方法:设定tmp文件夹为最大的权限。
chmod 777 /tmp