Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## sometimes when your server was DDOS-ed, it will end up with MILLIONS of session files
- ## this is how to find it out, and clear it out
- ###### fastest way to count millions of files in a folder
- ls -U /var/lib/php/sessions|wc -l
- ###### fastest way to delete millions of files in a folder
- find /var/lib/php/sessions/ -type f -mmin +60 -delete
Advertisement