Jump to content

opendir(/var/cpanel/php/sessions/ea-php56) failed: Permission denied (13)


runastoreperu
 Share

Recommended Posts

Hello friends when entering the administration part of the store I find this error when I want to go to the catalog option of the store to enter new products, please could help me, I know it is a php error, but I can not find the Solution, the error says so:
 
 
ContextErrorException in classes.php line 429: Notice: SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/cpanel/php/sessions/ea-php56) failed: Permission denied (13)
  1. in classes.php line 429
  2. at ErrorHandler->handleError('8', 'SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/cpanel/php/sessions/ea-php56) failed: Permission denied (13)', '/home/wwwrunastoreperu/public_html/app/cache/dev/classes.php', '429', array('maxlifetime' => '1440'))
  3. at SessionHandler->gc('1440') in classes.php line 429
  4. at SessionHandlerProxy->gc('1440')
  5. at session_start() in classes.php line 117
  6. at NativeSessionStorage->start() in classes.php line 192
  7. at NativeSessionStorage->getBag('attributes') in classes.php line 492
  8. at Session->get('_security_main') in ContextListener.php line 78
  9. at ContextListener->handle(object(GetResponseEvent)) in classes.php line 2604
  10. at Firewall->onKernelRequest(object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))
  11. at call_user_func(array(object(Firewall), 'onKernelRequest'), object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher)) in WrappedListener.php line 61
  12. at WrappedListener->__invoke(object(GetResponseEvent), 'kernel.request', object(ContainerAwareEventDispatcher))
  13. at call_user_func(object(WrappedListener), object(GetResponseEvent), 'kernel.request', object(ContainerAwareEventDispatcher)) in classes.php line 1863
  14. at EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(GetResponseEvent)) in classes.php line 1778
  15. at EventDispatcher->dispatch('kernel.request', object(GetResponseEvent)) in TraceableEventDispatcher.php line 140
  16. at TraceableEventDispatcher->dispatch('kernel.request', object(GetResponseEvent)) in bootstrap.php.cache line 3236
  17. at HttpKernel->handleRaw(object(Request), '1') in bootstrap.php.cache line 3206
  18. at HttpKernel->handle(object(Request), '1', false) in bootstrap.php.cache line 3360
  19. at ContainerAwareHttpKernel->handle(object(Request), '1', false) in bootstrap.php.cache line 2562
  20. at Kernel->handle(object(Request), '1', false) in index.php line 86

 

Share this post


Link to post
Share on other sites

  • 5 weeks later...
  • 5 months later...
  • 1 month later...
On 6/13/2017 at 0:19 PM, FuenRob said:

Hello,

 

I had the same problem. 
 
I solved it by changing the session_path to / tmp, in the php.ini
 
Regards

Hi

Could you please give me more details. How did you do it?

I use cPanel

Share this post


Link to post
Share on other sites

On 1/2/2018 at 8:11 PM, FuenRob said:

 

In the files of your web (DocummentRoot), do you have the file php.ini?

 

I have VDS, so i can reach to php.ini. But what change i need to do exactlty? 

I have below line in php.ini, 

session.save_path = "/var/cpanel/php/sessions/ea-php56"

 

do you suggest to change it to below one?

session.save_path = "/tmp"

 

  • Like 1

Share this post


Link to post
Share on other sites

On 6/1/2018 at 6:52 PM, erkange said:

 

I have VDS, so i can reach to php.ini. But what change i need to do exactlty? 

I have below line in php.ini, 

session.save_path = "/var/cpanel/php/sessions/ea-php56"

 

do you suggest to change it to below one?

session.save_path = "/tmp"

 

 

Yes, you must done this change.

Please, comment with your results.

Share this post


Link to post
Share on other sites

1 hour ago, FuenRob said:

 

Yes, you must done this change.

Please, comment with your results.

 

thanks it worked. 

I have done below updates;

 

max_execution_time = 600     ; Maximum execution time of each script, in seconds
max_input_time = 600 ;  Maximum amount of time each script may spend parsing request data
memory_limit = 128M      ; Maximum amount of memory a script may consume (32MB)
max_input_vars = 7000 ;
 
session.save_path : /tmp
  • Like 1

Share this post


Link to post
Share on other sites

1 hour ago, erkange said:

 

thanks it worked. 

I have done below updates;

 

max_execution_time = 600     ; Maximum execution time of each script, in seconds
max_input_time = 600 ;  Maximum amount of time each script may spend parsing request data
memory_limit = 128M      ; Maximum amount of memory a script may consume (32MB)
max_input_vars = 7000 ;
 
session.save_path : /tmp

 

Perfect :D

Share this post


Link to post
Share on other sites

  • 2 months later...
  • 1 year later...
  • 3 months later...
  • 4 months later...
On 6/13/2017 at 12:19 PM, FuenRob said:

Hello,

 

I had the same problem. 
 
I solved it by changing the session_path to / tmp, in the php.ini
 
Regards

@FuenRob you made my day ❤️

Issue resolved using your advice in v.1.7.6.4 (latest at the time of composing this message)

Edited by tapanda.gr (see edit history)

Share this post


Link to post
Share on other sites

  • 7 months later...
  • 3 weeks later...

Hello good evening, I have exactly the same problem ... When loading products the store keeps loading and with the debug it gives the error: SessionHandler :: gc (): ps_files_cleanup_dir: opendir (/ var / cpanel / php / sessions / ea-php73) failed: Permission denied (13) I tried with changing php.ini and php ini variables but nothing :(

Share this post


Link to post
Share on other sites

@Luzotaiza @ Cherniakovsky Ho LO STESSO Problema, Momento in cui la Modalità di eseguire il debug E disabilitata VIENE restituito L'errore 500. Come hai risolto? Grazie @tapanda.grIn debug it is true it resolves but as soon as I deactivate the debug error500 returns

Edited by Sandro Airaldi (see edit history)

Share this post


Link to post
Share on other sites

  • 1 month later...
On 1/8/2018 at 4:51 AM, erkange said:

 

thanks it worked. 

I have done below updates;

 

max_execution_time = 600     ; Maximum execution time of each script, in seconds
max_input_time = 600 ;  Maximum amount of time each script may spend parsing request data
memory_limit = 128M      ; Maximum amount of memory a script may consume (32MB)
max_input_vars = 7000 ;
 
session.save_path : /tmp

Fixed my problem as well!

Thanks

Share this post


Link to post
Share on other sites

  • 1 month later...
On 6/13/2017 at 7:19 PM, FuenRob said:

Hello,

 

I had the same problem. 
 
I solved it by changing the session_path to / tmp, in the php.ini
 
Regards

I set some settings in a shipping module and also set Address Phone field to mandatory for customers and suddenly it was crashing my dashboard with this error 

Notice on line 101 in file /home/***/***l/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/StrictSessionHandler.php
[8] SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/cpanel/php/sessions/ea-php73) failed: Permission denied (13)
 

Great fix sorted it out straight away.

Thanks for posting this.

 

Share this post


Link to post
Share on other sites

  • 4 weeks later...
  • 9 months later...

I changed the session.save_path to /tmp , but now when trying to take out of debug mode, the error about the ps_files_cleanup_dir: opendir (/var/cpanel/php/sessions/ea-phpXX.. repeats. The debug mode turn off is still trying to act upon the previous setting. I am in debug mode in an incognito browser, and have manually cleared caches in the shop and in the browser.

Share this post


Link to post
Share on other sites

  • 2 months later...
On 1/8/2018 at 5:51 AM, erkange said:

 

thanks it worked. 

I have done below updates;

 

max_execution_time = 600     ; Maximum execution time of each script, in seconds
max_input_time = 600 ;  Maximum amount of time each script may spend parsing request data
memory_limit = 128M      ; Maximum amount of memory a script may consume (32MB)
max_input_vars = 7000 ;
 
session.save_path : /tmp

Hello, here reporting from the future (2022) and I have the same problem. With this solution, did you fix this issue forever and ever? I

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More