session.gc_divisor warnings
hello
On a VPS using WHM and CPANEL on AlmaLinux, since installing PHP 8.4, I've been getting a lot of messages in the error log saying "session.gc_divisor must be greater than 0 in Unknown on line 0."
On the one hand, I've read that it's unnecessary to modify this value since Cpanel clears the cache via a cron job. On the other hand, I can't find the session.gc_divisor variable in the WHM PHP Editor.
I would appreciate it if someone could tell me how to avoid the PHP Warnings in the error log.
Thanks
-
Go to WHM -> Software -> MultiPHP INI Editor, select "Editor Mode", and "ea-php84",
and you will find that session.gc_divisor0 -
Is not there
0 -
[root@srv ~]# grep "session.gc_divisor" /opt/cpanel/ea-php84/root/etc/php.ini
; session.gc_divisor
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
; session.gc_divisor is the denominator in the equation. Setting this value to 1
; when the session.gc_divisor value is 100 will give you approximately a 1% chance
session.gc_divisor = 00
Please sign in to leave a comment.
Comments
3 comments