Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

large number of files in /var/cpanel/php/sessions/php56

Discussion in 'General Discussion' started by tidew, Feb 27, 2019.

  1. tidew

    tidew Registered

    Joined:
    Feb 27, 2019
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Hi good day to all,

    On my WHM/Cpanel server , in the folder /var/cpanel/php/sessions/php56, are a large number of files that looks to be having no purpuse.. Any one knows if i can delte them or what they serve?

    Thanks in advance
     
    #1 tidew, Feb 27, 2019
    Last edited by a moderator: Mar 1, 2019
  2. GOT

    GOT Get Proactive! PartnerNOC

    Joined:
    Apr 8, 2003
    Messages:
    1,453
    Likes Received:
    178
    Trophy Points:
    193
    Location:
    Chesapeake, VA
    cPanel Access Level:
    DataCenter Provider
    What are some example files in there,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    tidew likes this.
  3. tidew

    tidew Registered

    Joined:
    Feb 27, 2019
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Yeah offcourse i can show you! Just these sessions files, but like alot of them

    upload_2019-2-28_12-35-15.png
     
  4. GOT

    GOT Get Proactive! PartnerNOC

    Joined:
    Apr 8, 2003
    Messages:
    1,453
    Likes Received:
    178
    Trophy Points:
    193
    Location:
    Chesapeake, VA
    cPanel Access Level:
    DataCenter Provider
    Figured they would be session files. You might just want to remove the ones that are over three days old. And you may want to look into why that site is creating so many of them. You can tell what site they are from by looking at the user who owns them.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    tidew likes this.
  5. tidew

    tidew Registered

    Joined:
    Feb 27, 2019
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    That's the weird part it's all from one user/group. The folder is 10GB. Thanks for the advice!
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,272
    Likes Received:
    2,154
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @tidew,

    Here's a description of the directory you referenced:

    Can you check if the /usr/local/cpanel/scripts/clean_user_php_sessions script is cleaning up the older session files? We document how to use this script on the link below:

    The clean_user_php_sessions Script - Version 78 Documentation - cPanel Documentation

    Let me know if you notice any errors or if the script doesn't clean the old session files (it's setup to run daily as a root cron job, so it should be removing the old session files).

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice