Introduction
This guide will show you where to configure PHP Sessions in cPanel?
Procedure
PHP Sessions can be configured through cPanel by using MultiPHP INI Editor in WHM or directly through the command line by editing the files at "/opt/cpanel/ea-phpxx/root/etc/php.ini".
Note: Replace xx with the PHP version you are attempting to modify. For example, if you were changing PHP 7.4, you would edit the file "/opt/cpanel/ea-php74/root/etc/php.ini".
If you use Apache PHP-FPM, be sure to perform a restart after the changes:
/scripts/restartsrv_apache_php_fpm
Be aware that the default cPanel php.ini file does not list all of the available session configuration functions so you may need to add some manually.
A list of PHP Session functions can be found in PHP's documentation below:
Comments
0 comments
Article is closed for comments.