large number of files in /var/cpanel/php/sessions/php56
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
-
What are some example files in there, 0 -
Yeah offcourse i can show you! Just these sessions files, but like alot of them 57197 0 -
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. 0 -
That's the weird part it's all from one user/group. The folder is 10GB. Thanks for the advice! 0 -
Hello @tidew, Here's a description of the directory you referenced: [QUOTE]The system saves PHP sessions in the /var/cpanel/php/sessions directory by default. EasyApache 4 installations create subdirectories based on the version of PHP that exists on the server. If multiple versions of PHP exist on the system, a subdirectory exists for each version of PHP. The root user owns each directory, and each directory possesses 1733 permissions. This allows PHP to write session files, but users will not possess permissions to delete those sessions in the directory.
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.0 -
/var/cpanel/php/sessions
is full i used script manually but did not help.
PLease advise more my server is almost full and it is phyical server expanding storage it is another heache
0 -
Joseph Mwalunyika - it's best to create a new thread for new issues. Have you tried running the tool mentioned here? https://support.cpanel.net/hc/en-us/articles/360052249794-How-to-clean-up-PHP-Session-files
0
Please sign in to leave a comment.
Comments
7 comments