Page 1 of 1

session error

Posted: Mon Dec 26, 2011 1:05 pm
by bigboss
Notice: session_start() [function.session-start]: ps_files_cleanup_dir: opendir(/var/lib/php5) failed: Permission denied (13) in /web/system/library/session.php on line 11

This kind of errors not always ocurred. If I press F5 to refresh the browser, this error will not ocurr again.
What's happend and how to fix it???

Re: session error

Posted: Mon Dec 26, 2011 1:24 pm
by Qphoria
This is an issue on your server. More info here:
http://stackoverflow.com/questions/2904 ... 73#2952173

Re: session error

Posted: Mon Dec 26, 2011 1:39 pm
by bigboss
Yes! I am using Debian LAMP server. But I have checked my php.ini, the session.gc_probability = 0
is already set to zero. Besides, I am also running some other shopping carts but there is no this kind of error.
Qphoria wrote:This is an issue on your server. More info here:
http://stackoverflow.com/questions/2904 ... 73#2952173

Re: session error

Posted: Mon Dec 26, 2011 9:33 pm
by Daniel
contact your host. this is the servers problem nothing to do with opencart!

Re: session error

Posted: Mon Dec 26, 2011 11:50 pm
by bigboss
In fact, it is my home server. I have checked it with the above website and try to fix the problem. But I still can't fix the problem. I have also installed the other shopping carts (os, zen, ec, presta, etc), but they don't have this problem.
Daniel wrote:contact your host. this is the servers problem nothing to do with opencart!

Re: session error

Posted: Sat Jan 07, 2012 2:54 pm
by bigboss
I have tried to install opencart to other server with older linux version and less php modules. There is no problem.
However, I am wondering the handling method of opencart for accessing the cache / session may be affected by the setting of server and the access right. But in fact the server is in a common setting and other shopping cart scripts have no this kind of problem.

Re: session error

Posted: Sat Jan 07, 2012 7:55 pm
by Daniel
its a permissions issue! with your server! nothing to do with opencart! you have not set the web user to have permission on this folder. are u stupied! opencart does not alter your session directory!

Re: session error

Posted: Tue May 01, 2012 7:35 pm
by HappyBerry
Thats all very well saying its the server but I dont have access or permission to change the directory that is affected as I am on shared hosting.

Re: session error

Posted: Wed May 02, 2012 6:24 pm
by Daniel
you don;t share the session directory. a new one is created for each web site on the host.

again this is nothing to do with opencart. its between you and your hosting company. contact them to fix the issue you have.

Re: session error

Posted: Thu May 03, 2012 4:49 am
by suprazor
So im also getting this error with my new host. This host has cronjob feature in cpanel. Im too noob with php but could it be as simple as setting cronjob feature to automatically execute session.php file found in yoursite/system/library?

If so then what are the files and lines I need to modify in opencart ftp to stop it from running session.php script on its own?

Re: session error

Posted: Thu May 03, 2012 11:26 pm
by sundecks
I also met the situation before.But after I restart it,it return to the normal.I don't know how to figure it too