Permission Error

4 posts by 2 authors in: Forums > CMS Builder
Last Post: July 28, 2017   (RSS)

: Couldn't start session! 'session_start(): ps_files_cleanup_dir: opendir(/var/cpanel/php/sessions/ea-php54) failed: Permission denied (13)'!

After uploading media, I keep getting this error. It uploads, the file, but the message is there.

It happens intermittently, or when uploading several files at a time.

By Dave - June 20, 2017

Hi dccreatives, 

This is a common error and you can see a lot of Google search results for it: 
https://www.google.com/search?q=session_start+ps_files_cleanup_dir:+opendir+failed:+Permission+denied

PHP creates temporary "session" files that need to cleaned up after a period of time.  Usually PHP removes these files, but some of the linux variants (like Ubuntu) are configured to remove those files and don't let PHP do it because they think that's more secure.  The result is that when PHP tries to remove the files (which usually happens randomly 1/100 page views) you can get an error.  PHP can be configured to not do this on servers that do it automatically but by default PHP will try to clean up the files itself.

The solution is to email your web host and let them know that you're getting this error intermittently:

  •  ps_files_cleanup_dir: opendir(/var/cpanel/php/sessions/ea-php54) failed: Permission denied (13)'!

And that you found some web results here: 

That suggest the solution is to use the following setting in php.ini:

session.gc_probability = 0

Can you give that a try and let me know what they say?  If there's something we can update in the CMS to help this we can do that, but at first glance it looks like it is likely a server config issue.

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com

By Dave - July 28, 2017

Hi dccreatives, 

Those sound like hosting issues.  What hosting company and plan is it?  Sometimes the <$20 plans have pretty bad service.  Is it the client's hosting company or yours? 

Dave Edis - Senior Developer
interactivetools.com