Archive for the ‘PHPMyAdmin’ Category

While accessing PHPmyadmin in cpanel, you are getting following error

PHPMyAdmin :: Existing configuration file (./config.inc.php) is not readable

Solution is:

1)  Login to the server using root user

2) check the permission of the following file

root@Server[~]#ls -ld /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php

It should be

-rw-r—– 1 root cpanelphpmyadmin 1749 Oct 11 23:06 /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php

3) If not then change ownership and file permission to above using following commands.

chown root:cpanelphpmyadmin  /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php
chmod 640 /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php

That is it, you are all done. Cheers.

This is a possible issue when the path to save php_session is not correctly set :

The directory for storing session does not exists or php do not have sufficient rights to write to it.

To define the php_session directory simply add the following line to the php.ini :

session.save_path=”/tmp/php_session/”

And give write rights to the http server.

usually, the http server run as user daemon in group daemon. If it is the case, the following commands will make it :

chown -R :daemon /tmp/php_session

chmod -R g+wr /tmp/php_session

restart http server.

Sometimes phpMyadmin will give you following error.

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

Make the following changes.

root@server[~]#nano /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini
And than change the following values in php.ini file

FROM:
=================================
session.save_handler = sqlite
session.save_path =/var/cpanel/userhomes/cpanelphpmyadmin/sessions/phpsess.sdb
=================================
TO
=================================
session.save_handler = files
session.save_path = /tmp
=================================

Restart cpanel