Amin Adel Amin Adel -4 years ago 133
PHP Question

folder "ea-php55" deleted, now session doesn't work

recently a huge size increase happend in a folder in cPanel host in this address:

.cagefs/var/cpanel/php/sessions/ea-php55


it was about 700MB size. I couldn't even open this folder to see all files. so I deleted the entire folder and recreated it. I also set Permissions to 0700 (like it was before).

now session doesn't work. I can't even login to my website's admin panel. How can I fix this problem?

Answer Source

After 2 days finally solved the problem. I created a folder named "session" near public_html.

/public_html
/session

and added one line of php code to change the "session save path" to that folder :

ini_set('session.save_path',realpath(dirname($_SERVER['DOCUMENT_ROOT']) . '/../session'));

now session is working. I don't think this is a perfect way but at least it's working now.

if you see this and have a better way please write your answer.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download