Sign up |
: 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.
This is a common error and you can see a lot of Google search results for it:
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:
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!
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.