PDA

View Full Version : Lỗi session.save_path khi cài PHPLive ! ????



ITbaby
19-03-2004, 06:48
Em cài thử cái PHPLive 2.1.1 thì nó xuất hiện lỗi này. Em cài ở Local không sao, nhưng Up lên Host thì bị lỗi này. Có anh nào đã thử cái này cho em biết lỗi của nó là gì với. Mặc dù em đã liên hệ với nhà cung cấp Host Set file php.ini và permission là Full rồi nhưng vẫn bị lỗi. Lỗi nó như sau đây :

'session.save_path' directory not set! Please set your session.save_path in your php.ini file. It is usally set to /tmp for UNIX, C:\Temp for windows. After you have done this, reload this page.

chulonghai
29-05-2009, 10:08
'session.save_path' directory not set! Please set your session.save_path in your php.ini file.

SUMMARY

'session.save_path' directory not set! Please set your session.save_path in your php.ini file. It is usally set to /tmp for UNIX, C:Temp for windows. After you have done this, reload this page.

This article outlines how to correct the incorrect URL error message

INFORMATION

The cause of this error is that either PHP Safe Mode or open_basedir restrictions.

If it is the cause of PHP Safe mode then after you perform the instructions outlined in this article you will also need to perform the instructions outlined in Installing PHP Live! with PHP Safe Mode enabled.

To determine if you have Safe mode enabled you would go to...

http://www.domain.com/phplive/super/info.php

On this page search for Safe_Mode directive and see if it is ON.

INSTRUCTIONS

To correct the error a bit of code modification is needed.

1. First open up the phplive/setup/index.php file in a text editor.

On lines approximately 31-36 you will see the following code.

// do initial checks to make sure setup can run
if ( !is_dir( session_save_path() ) )
{
print "'session.save_path' directory not set! Please set your session.save_path in your php.ini file. It is usally set to /tmp for UNIX, C:Temp for windows. After you have done this, reload this page." ;
exit ;
}

2. Comment out lines 31-36 lines so it will now look something like this...

// do initial checks to make sure setup can run
//if ( !is_dir( session_save_path() ) )
//{
// print "'session.save_path' directory not set! Please set your session.save_path in your php.ini file. It is usally set to /tmp for UNIX, C:Temp for windows. After you have done this, reload this page." ;
// exit ;
//}

3. Once you have that done you will now need to save the file and replace the old phplive/setup/index.php file with the new one.

4. Test it out. :) And for those with Safe Mode enabled follow the instructions listed in this article Installing PHP Live! with PHP Safe Mode enabled.

http://www.phplivesupport.com/documentation/viewarticle.php?aid=25&pid=13

jiSh@n
29-05-2009, 12:41
Ác nhơn thất đức vừa vừa thôi. Topic mồ yên mả đẹp 5 năm rồi mà cũng đào lên cho được.

bka
29-05-2009, 13:57
cái box này giờ đừng gọi là Lập trình web nữa. mà gọi là Đào mồ web