This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: [1]
1
Apache / [JOOMLA and Wordpress] Problem with Session after Migration from cPanel
« on: February 21, 2024, 03:38:26 AM »
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
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
Pages: [1]