Opened 6 years ago

Last modified 6 years ago

#7071 assigned Bug/Something is broken

intermittent failed php session cleanup on http://$

Reported by: Daniel Kahn Gillmor Owned by: Jamie McClelland
Priority: Medium Component: Tech
Keywords: ir php5 sessions Cc:
Sensitive: no


if i refresh a hundred times in a row, one of those times is likely to come up with:

Notice: session_start() [function.session-start]: ps_files_cleanup_dir: opendir(/var/lib/php5) failed: Permission denied (13) in /var/www/ on line 593

Warning: Cannot modify header information - headers already sent by (output started at /var/www/ in /var/www/ on line 754

I suspect this is what's happening:

  • we've got php's self-triggered garbage collection turned on.
  • php stores its sessions in /var/lib/php5 normally, so that's where its garbage collection routines try to clean up
  • but peltier:/etc/apache2/sites-enabled/ defines an Suexec User that doesn't have permissions to clean up files from /var/lib/php5.
  • we have php warnings and notices enabled to be written to the web browser (this is probably a bug that needs fixing at least)

Change History (2)

comment:1 Changed 6 years ago by Daniel Kahn Gillmor

(note that this is all hosted on peltier)

comment:2 Changed 6 years ago by Ross

Owner: set to Jamie McClelland
Status: newassigned

Please login to add comments to this ticket.

Note: See TracTickets for help on using tickets.