发新话题
打印

Session save path /dev/shm, Unwriteable

Session save path /dev/shm, Unwriteable

请教,下面是什么意思,怎样才能解决啊,新手上路,难呀
Session save path  /dev/shm, Unwriteable

TOP

说这个目录不可写,你要把它改成可写的,这样前后台才可以登录。
动网商城:www.poweb.cn
承接mambo和joomla系统、组件、模块等程序开发和模板制作
双线空间100M只需60元,性价比高

TOP

非常感谢,我的虚拟主机下没有这个目录路径,我需要手动建立它们吗?

TOP

是你自己的服务器?把 /dev/shm 设置为 777 即可

TOP

不是啊,服务商的虚拟主机,那我该怎么办啦?

TOP

以参照http://forum.mamboserver.com/arc ... Cbr%20/t-19284.html解决了
dchelliahJune 2nd, 2005, 09:41
Hi. I think I may have found a solution. I'm trying it out now...what I did is change the installation/index.php file.

If you open this file then add

ini_set('session.save_path',"mambodirectory/yourtempdir"); at the beginning in the php section so the file looks like this:
--------------------------------------
<?php
/**
* @version $Id: index.php,v 1.5 2005/01/23 03:24:16 kochp Exp $
* @package Mambo
* @copyright (C) 2000 - 2005 Miro International Pty Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* Mambo is Free Software
*/
/* Set the session path */
ini_set('session.save_path',"mambodirectory/yourtempdir");


if (file_exists( "../configuration.php" ) && filesize( "../configuration.php" ) > 10) {
----------------------------------------

Mambodirectory is the directory for your mambo installation.
You will need to find out from your hosting provider what the "mambodirectory" is. For my hosting provider which is Neureal it is "C:/hshome/youraccount/"

"yourtempdir" needs to be a new directory in your mambo folder. This also has to be a readable/writeable folder.

Fingers crossed :)

--------------------------------------------------------------------------------

dchelliahJune 2nd, 2005, 20:49
You will also need to add:


ini_set('session.save_path',"mambodirectory/yourtempdir");

to the configuration.php file.

-----------------------------
把smile禁用了,这样大家看得清楚些

[ 本帖最后由 zijie 于 2006-11-11 18:05 编辑 ]

TOP

好呀,移到精华区

TOP

既然来了精华区了,就不能不把这个问题翻译一下了:
首先是安装之前,打开installation/index.php文件,在开头加上:

ini_set('session.save_path',"mambodirectory/yourtempdir");

开起来是这样的:
--------------------------------------
<?php
/**
* @version $Id: index.php,v 1.5 2005/01/23 03:24:16 kochp Exp $
* @package Mambo
* @copyright (C) 2000 - 2005 Miro International Pty Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* Mambo is Free Software
*/
/* Set the session path */
ini_set('session.save_path',"mambodirectory/yourtempdir");

if (file_exists( "../configuration.php" ) && filesize( "../configuration.php" ) > 10) {
...
----------------------------------------
Mambodirectory是mambo的根目录,
比如像这样:"C:/hshome/youraccount/"

"yourtempdir" 是在mambo的根目录下创建的一个新目录(自己建). 当然需要有读写权限。

安装完成以后,别忘了在configuration.php文件中加入
ini_set('session.save_path',"mambodirectory/yourtempdir");

里面的值上面解释过了
mambo整合discuz同步注册登录,全站utf-8编码,php5+mysql5
http://www.bytea.net

TOP

发新话题