Archive for the tag 'session'

If we get an error given below while accessing phpMyAdmin.

Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

There can be error in writing session files. Either the owner do not have ‘write’ permission or the owner is different.

Solution

Normally tmp directories are used to dump sessions. And phpMyAdmin has its own tmp folder. Check the permission and ownership of this folder. Change it to the following

Location : /var/cpanel/userhomes/cpanel-phpmyadmin

cd /var/cpanel/userhomes/cpanel-phpmyadmin

1)Permission of tmp must be 700

chmod 700 -R tmp

2)Ownership must be cpanel-phpmyadmin

chown cpanel-phpmyadmin: -R *

The output should look similar to as given below

ll /var/cpanel/userhomes/cpanel-phpmyadmin/
total 16
drwx–x–x 4 cpanel-phpmyadmin cpanel-phpmyadmin 4096 Mar 10 23:56 ./
drwx–x–x 5 root root 4096 Mar 10 23:53 ../
drwxr-x— 2 cpanel-phpmyadmin cpanel-phpmyadmin 4096 Mar 10 23:53 mail/
drwx—— 2 cpanel-phpmyadmin cpanel-phpmyadmin 4096 Mar 10 23:56 tmp/