Login | Sign up | Toll-Free: 1-800-752-0455
 
 

Forum

 

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

: 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.

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

I keep getting this error all over the site: 

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

I sent the previous answer to host and they claim they fixed the issue.

In addition, we are getting errors, uploading an 8mb file and the error message is that it is exceeding the max upload file. We have updated the max upload to 64MB, so something is wrong.

Attachments:

max-upload.gif 61K