How can we improve WHMCS?

Share, discuss and vote for what you would like to see added to WHMCS

Add PHP Sessions config sanity check to 'System Health Status'

Add a check for sane configuration of the PHP config values 'session.gc_probability' and 'session.gc_divisor'.

If either of these values are 0 no garbage collection it performed on stale session storage.
Which can result in saved stale sessions taking up GB of disk space and increasing page load times as PHP searches for a session ID match.

# PHP defaults
session.gc_probability = 1
session.gc_divisor = 100
- This runs session garbage collection during 1% of requests

# cPanel Production Recommendation
session.gc_probability = 1
session.gc_divisor = 1000
- This runs session garbage collection during 0.1% of requests, Recommended for high volume production servers.


Post the first comment

Login to post a comment.