/var/php_sessions 不被识别

/var/php_sessions not being recognized(/var/php_sessions 不被识别)
本文介绍了/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 不被识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Convert JSON integers and floats to strings(将JSON整数和浮点数转换为字符串)
in php how do I use preg replace to turn a url into a tinyurl(在php中,如何使用preg替换将URL转换为TinyURL)
all day appointment for ics calendar file wont work(ICS日历文件的全天约会不起作用)
trim function is giving unexpected values php(Trim函数提供了意外的值php)
Basic PDO connection to MySQL(到MySQL的基本PDO连接)
PHP number_format returns 1.00(Php number_Format返回1.00)