/var/php_sessions无法识别 [英] /var/php_sessions not being recognized

查看:44
本文介绍了/var/php_sessions无法识别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Joomla设置为我创建的网站的CMS. 我的网站托管于Globat.当我尝试安装Joomla时,出现此消息.

I'm trying to set up Joomla as a CMS for a web site I made. I have the site hosted with Globat. When I try to install Joomla, I get this message.

警告:未知: 打开(/var/php_sessions/sess_cc24fb3a1ba0e66a653237dd88762ac6,O_RDWR) 失败:第0行的未知"中没有这样的文件或目录(2)警告: 未知:无法写入会话数据(文件).请确认 session.save_path的当前设置正确(/var/php_sessions)在 在第0行上未知

Warning: Unknown: open(/var/php_sessions/sess_cc24fb3a1ba0e66a653237dd88762ac6, O_RDWR) failed: No such file or directory (2) 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/php_sessions) in Unknown on line 0

我检查了PHP ini文件中的php_session行,看起来好像应该这样.这是代码段.

I checked the PHP ini file for the php_session line, and it appears to look like it should. Here's the snippet.

; NOTE 1: PHP will not create this directory structure automatically.
;         You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
;         use subdirectories for session storage
;
; The file storage module creates files using mode 600 by default.
; You can change that by using
;
;     session.save_path = "N;MODE;/path"
;
; where MODE is the octal representation of the mode. Note that this
; does not overwrite the process's umask.
; http://php.net/session.save-path
session.save_path = "/var/php_sessions"

; Whether to use cookies.
; http://php.net/session.use-cookies
session.use_cookies = 1

有人对我为什么会收到此错误有任何想法吗? save_path看起来应该是应该的.

Does anyone have any ideas why I'd get this error? It looks liek the save_path is what it should be.

谢谢!

推荐答案

请检查/var/php_sessions/是否存在并且可被您的Web服务器用户写入.

Please check if /var/php_sessions/ exists and is writable by your web server user.

另一个原因可能是相应的分区空间不足.

Another reason might be that the corresponding partition is out of space.

但是最有可能是您自己无法解决的托管问题,您需要向托管服务提供商寻求帮助.

But most likely it's a hosting issue that you can't solve by yourself, and you will need to ask assistance from your hosting provider.

这篇关于/var/php_sessions无法识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆