Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: phpMyadmin error- Can not start session without errors  (Read 2566 times)

0 Members and 1 Guest are viewing this topic.

sajugovind

  • Guest
phpMyadmin error- Can not start session without errors
« on: April 06, 2014, 03:23:26 pm »
While trying to login in to PHPMYADMIN, you may get error like this:-

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


FIX:-
=====
Check permissions of /tmp. It may be 755. Change it to 1777.

Try to access PHPMYADMIN again.

If the issue is still there

open the file /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini using your favourite editor like vi.

Code: [Select]
#vi /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini
Change session.save_path to /tmp and restart apache.

Try to access again, If this wont fix pfoceed with thefollowing steps:-

Code: [Select]
[root@ourserver ~]#cd /var/cpanel/userhomes

[root@ourserver ~]#chown cpanel-phpmyadmin:cpanel-phpmyadmin -R cpanel-phpmyadmin

Make sure that /var/cpanel/userhomes/cpanel-phpmyadmin/tmp file has 700 permission. If its not,

Code: [Select]
[root@ourserver ~]#chmod 700 /var/cpanel/userhomes/cpanel-phpmyadmin/tmp
Check this also:-

Open the file:-
Code: [Select]
[root@ourserver ~]#vi /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php
Change the entries to the following:-

Code: [Select]
$cfg[Servers][$i][socket] = ?;
replace with
$cfg[Servers][$i][socket] = /var/lib/mysql/mysql.sock;
cfg[Servers[$i][?connect_type?] = tcp;
replace with
$cfg[Servers][$i][?connect_type?] = socket;