Hello,
Recently, I tried to move 2 websites based on Joomla (3.xx/PHP 5.6) and the latest version of Wordpress (6.xx/PHP 8.2) from cPanel hosting to CWP, but failed.
Messages appeared in /usr/local/apache/domlogs/mydomain.dot.com.error.log:
PHP message: PHP Warning: session_start(): Failed to read session data: files (path: /var/cpanel/php/sessions/ea-php56) in /home/mydomain1/public_html/blablaa ...
PHP message: PHP Warning: session_start(): Failed to read session data: files (path: /var/cpanel/php/sessions/ea-php82) in /home/mydomain2/public_html/blablaa ...
Both directories above /var/cpanel/php/sessions/ea-php56 and /var/cpanel/php/sessions/ea-php82 indeed do not exist and seem to come from settings in the previous cPanel hosting.
I have made changes by adding a php.ini file to set the session directory location correctly, but there is no change, the website still cannot be accessed with the same error message.
How to configure session correctly for these cases? Thank you