Author Topic: Bị lỗi session.save_path giúp mình với  (Read 3966 times)

langtuvn

  • PHP Starter
  • *
  • Posts: 8
    • View Profile
    • Email
Bị lỗi session.save_path giúp mình với
« on: April 05, 2011, 04:00:37 PM »

web em đang chạy bình thường tự nhiên bị báo dòng lỗi này, em mong mọi nguoi giúp đỡ ... rất khẩn thiết
: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/tmp) in Unknown on line 0

Em cảm ơn nhiều.

billythekids

  • PHP Intermediate
  • *
  • Posts: 363
    • MSN Messenger - billyboxviet@hotmail.de
    • AOL Instant Messenger - billythekids
    • Yahoo Instant Messenger - billythekidsde@yahoo.com
    • View Profile
Re: Bị lỗi session.save_path giúp mình với
« Reply #1 on: April 05, 2011, 04:29:12 PM »
có thể là ko có quyền thao tác trên /home/tmp hoặc thư mục trên ko còn tồn tại. Bạn thử check lại trên server coi như thế nào.

langtuvn

  • PHP Starter
  • *
  • Posts: 8
    • View Profile
    • Email
Re: Bị lỗi session.save_path giúp mình với
« Reply #2 on: April 05, 2011, 04:39:49 PM »
bạn ơi tren server của mình ko có thu muc home/tmp

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

no báo lỗi vậy, trc dây web mình vẩn hoạt đọng bình thường, ko có lõi gi cả.
cảm ơn bạn

billythekids

  • PHP Intermediate
  • *
  • Posts: 363
    • MSN Messenger - billyboxviet@hotmail.de
    • AOL Instant Messenger - billythekids
    • Yahoo Instant Messenger - billythekidsde@yahoo.com
    • View Profile
Re: Bị lỗi session.save_path giúp mình với
« Reply #3 on: April 05, 2011, 04:58:50 PM »
thứ nhất cho mình biết server của bạn chạy cái nào, mà bạn là người install server hả?
Bạn thử kiểm tra apache của bạn đang chạy là quyền nào. Sau đó bạn thử tạo cái folder đó ra, chown nó lại cho đúng quyền của apache rồi chmod lại cho dùng. Còn ko biết apache chạy quyền gì thì chmod 777 cho đơn giản :D

langtuvn

  • PHP Starter
  • *
  • Posts: 8
    • View Profile
    • Email
Re: Bị lỗi session.save_path giúp mình với
« Reply #4 on: April 05, 2011, 05:08:57 PM »
không bạn ah. server mình thuê của người ta,
mình làm web news, thư mục root chomd là 705
« Last Edit: April 05, 2011, 05:10:41 PM by langtuvn »

billythekids

  • PHP Intermediate
  • *
  • Posts: 363
    • MSN Messenger - billyboxviet@hotmail.de
    • AOL Instant Messenger - billythekids
    • Yahoo Instant Messenger - billythekidsde@yahoo.com
    • View Profile
Re: Bị lỗi session.save_path giúp mình với
« Reply #5 on: April 05, 2011, 05:12:54 PM »
vay đơn giản bạn ssh vào server rồi tạo thư mục chmod lại rồi xem thử coi còn lỗi ko.

langtuvn

  • PHP Starter
  • *
  • Posts: 8
    • View Profile
    • Email
Re: Bị lỗi session.save_path giúp mình với
« Reply #6 on: April 05, 2011, 05:27:47 PM »
vẩn bị lỗi bạn ah. mình đã chmod các kiểu ròi mà vẩn ko dc, lỗi session.save_path là ko ghi dc dử liệu vào sql. bây giờ nó cũng k cho dăng nhập vào admincp nữa.


billythekids

  • PHP Intermediate
  • *
  • Posts: 363
    • MSN Messenger - billyboxviet@hotmail.de
    • AOL Instant Messenger - billythekids
    • Yahoo Instant Messenger - billythekidsde@yahoo.com
    • View Profile
Re: Bị lỗi session.save_path giúp mình với
« Reply #7 on: April 06, 2011, 04:56:12 PM »
vậy ban chỉnh temp folder của php đang ở đâu vậy mà bạn đang dùng distro nào?