UndeadEO
Joined: 11th Jun 2011
Posts: 710
Random eoserv.net Notice
Does anyone know what this notice means that I get at the top of the page sometimes? :
Notice: session_start(): ps_files_cleanup_dir: opendir(/var/lib/php5) failed: Permission denied (13) in /var/www/eoserv.net/forum/.htforum/class/Session.class.php on line 17
13 years, 37 weeks ago
|
Misca

Joined: 10th May 2011
Posts: 2738
Re: Random eoserv.net Notice
Google ftw:
Frustratingly, if you do receive this error, you'll only get it once every hundred page loads on average. Which points to the cause of the problem: automatic session garbage collection. In Debian and Ubuntu, /var/lib/php5, where the session data is stored, has permissions of drwx-wx-wt and
should only be cleaned by a cron script.
Solutions found among others:
- Prefixing the session call with '@'
- change the group to www-data and grant group read permissions with "chmod g+r" (slightly more secure than the one below)
- change the directory permissions to be world-readable
- disable garbage collection in the session config file
---
Former multi-server mapper.
13 years, 37 weeks ago
|
Sausage
Administrator
Joined: 26th Jul 2008
Posts: 1346
Re: Random eoserv.net Notice
13 years, 37 weeks ago
|
Quackers
Joined: 15th Jun 2011
Posts: 278
Re: Random eoserv.net Notice
Misca posted: (21st Aug 2011, 01:02 am)
Google ftw:
Frustratingly, if you do receive this error, you'll only get it once every hundred page loads on average. Which points to the cause of the problem: automatic session garbage collection. In Debian and Ubuntu, /var/lib/php5, where the session data is stored, has permissions
ofdrwx-wx-wtandshould only be cleaned by a cron script.
Solutions found among others:
- Prefixing the session call with '@'
- change the group to www-data and grant group read permissions with "chmod g+r" (slightly more secure than the one below)
- change the directory permissions to be world-readable
- disable garbage collection in the session config file
Or you can just refresh your page when it happens. :) (I get it too about every 20/30 topics or so)
Edit: Guess its fixed now lol, great job Sausage.
13 years, 37 weeks ago
|
Misca

Joined: 10th May 2011
Posts: 2738
Re: Random eoserv.net Notice
Quackers posted: (21st Aug 2011, 01:13 am)
Misca posted: (21st Aug 2011, 01:02 am)
Google ftw:
Frustratingly, if you do receive this error, you'll only get it once every hundred page loads on average. Which points to the cause of the problem: automatic session garbage collection. In Debian and Ubuntu, /var/lib/php5, where the session data is stored, has
permissionsofdrwx-wx-wtandshould only be cleaned by a cron script.
Solutions found among others:
- Prefixing the session call with '@'
- change the group to www-data and grant group read permissions with "chmod g+r" (slightly more secure than the one below)
- change the directory permissions to be world-readable
- disable garbage collection in the session config file
Or you can just refresh your page when it happens. :)
(I get it too about every 20/30 topics or so)
Edit: Guess its fixed now lol, great job Sausage.
It's not just on one website, any website can cause this error. And never experienced it on eoserv.net but GJ Sausage.
---
Former multi-server mapper.
13 years, 37 weeks ago
|
Aqua

Joined: 1st Jun 2011
Posts: 88
Re: Random eoserv.net Notice
I've been getting those notices to randomley :o
13 years, 37 weeks ago
| | | | | | |