Author Topic: [JOOMLA and Wordpress] Problem with Session after Migration from cPanel  (Read 689 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
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

Offline
*****
Re: [JOOMLA and Wordpress] Problem with Session after Migration from cPanel
« Reply #1 on: February 21, 2024, 06:16:19 AM »
How did you migrate from cPanel to CWP?

The best & recommended way is to do a backup on cPanel, and the Restore it on CWP.
Under User Accounts -> cPanel Account Restore -> Account Import

Make sure you have the hosting package setup already to the same that you have on the cPanel server.