2014-03-06 60 views
1

我在Web应用程序(OpenCart)的日志文件中产生以下错误。有没有人看过这个?或者我可以忽略这个“有点已知的错误”?我尝试以下有关此特定错误的其他职位,但没有成功:会话错误 - Permisison被拒绝(13)

PHP的通知:在session_start():ps_files_cleanup_dir:执行opendir(在/ var/lib中/ PHP /会话)失败:权限被拒绝(13)

在这种奉献服务器的会话文件夹,我看到:

-rw------- 1 apache apache 48 Mar 5 19:21 sess_0pl62elpgn43rjakfh6em2v2n5 
-rw------- 1 apache apache 48 Mar 5 19:33 sess_2vo41urqek50ef9nl1429879i3 
-rw------- 1 apache apache 125 Mar 5 18:59 sess_35goisejg3asq4n4hntcsgofu6 
-rw------- 1 apache apache 48 Mar 5 19:16 sess_4cgkdiqfqgfgje356uoem0r7s3 
-rw------- 1 apache apache 48 Mar 5 19:33 sess_5ji1i4kppt6ara43v8jdflcgh6 
-rw------- 1 apache apache 48 Mar 5 19:34 sess_5sbl2o6ndpphh8jqogrb12v6j1 
    . 
    . 

LAMP,CentOS 5的,PHP 5.2

+0

文件夹的权限是错误的,服务器无法读取它。 – Prix

+0

在CentOS专用服务器上有同样的问题,你有没有想过问题是什么? – farjam

+0

[可能与PHP 5.3和会话文件夹有关的问题](http://stackoverflow.com/questions/2904862/issues-with-php-5-3-and-sessions-folder) – Sjon

回答

1

貌似这里有一个解决方案:

Issues with PHP 5.3 and sessions folder

只需设置session.gc_probability0PHP.ini

+0

注意:如果你打算与此同时,将'session.gc_probability'设置为'0'将在运行时禁用会话的垃圾回收。如果您没有设置定期清理会话的cron作业,则会话文件不会被删除! – Sean

相关问题