Skip to main content

php session failed: Permission denied (13)

Comments

7 comments

  • cPanelLauren
    This happens when the garabage collection is running through cron at the same time something else is attempting to perform the same action. To resolve this session.gc_probability can be set to 0 which would disable garbage collection. You can read about this here as well: Issues with PHP 5.3 and sessions folder
    0
  • devinh
    setting session.gc_probability=0, will be bad idea, becoz it will have a lot of orphaned session files in the session folder after it expiry, and it will waste the disk space and slow down your server.
    0
  • cPanelLauren
    Ultimately whats causing the error is garbage collection running at the same time something else is trying to clean the session. If the errors aren't causing actual issues with the site then I'd leave it - the sessions are being cleaned, you're getting the error when two separate processes are attempting the same action.
    0
  • devinh
    Ok, Anyway may I know what ll be another process attempting to clear session other than php session cleaner?
    0
  • cPanelLauren
    More than likely it's some portion of your application/software on the account you're experiencing the issue with, php-cli or something set within a CMS framework.
    0
  • devinh
    Thanks finally, Shall I ignore this notice/message?
    0
  • cPanelLauren
    I'd say you can safely ignore it since it's just two processes attempting to perform the same action - the one that isn't able to remove the file produces the error.
    0

Please sign in to leave a comment.