phpMyAdmin doesn't start - gives a session error

SoftDux

Well-Known Member
May 27, 2006
1,023
5
168
Johannesburg, South Africa
cPanel Access Level
Root Administrator
Hi all

This is a new installation on a VPS, and when I launch phpMyAdmin, I get the following error:

phpMyAdmin - Error

Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.
According to php.ini the session_save_path = /tmp & /tmp is writable by everyone. I've deleted all the files from /tmp as well, but it still doesn't work. Any other suggestions?
 

SoftDux

Well-Known Member
May 27, 2006
1,023
5
168
Johannesburg, South Africa
cPanel Access Level
Root Administrator
Did you try restarting cpanel?
Yes. I've rebooted the VPS as well, same thing

Had a check of the cpanel error logs?
Yes, no clues here either. /var/log/messages doesn't give me any errors either. From what I have seen from google search results, it has todo with the session_save_path not being writable, but it is, and there's a lot of user's session files in there.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
...

Yes, no clues here either. /var/log/messages doesn't give me any errors either. From what I have seen from google search results, it has todo with the session_save_path not being writable, but it is, and there's a lot of user's session files in there.
Logs relating to cpsrvd (the daemon that serves cPanel, WHM and Webmail) are typically found in /usr/local/cpanel/logs with exception of the update logs.

/var/log/messages is only for IMAP, POP3 and SpamAssassin, thus you would not find any entries there regarding the phpMyAdmin being served by cpsrvd.
 

k3oni

Member
Nov 2, 2006
8
0
151
Somewhere is USA
Sometimes if you login in to PHPMYADMIN, you can see the error as follows.

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 should be 755. Change it to 1777. Now access PHPMYADMIN.

/usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini

Change session.save_path as /tmp and restart apache.

Have a Smile :)
 

Warrenw

Active Member
PartnerNOC
Nov 1, 2008
25
0
51
Using K3oni response with slight change I solved the same problem:

view /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini and see what session.save_path is already set to and make the permissions changes on that file. 1777 is not required 1755 worked as well.

Ownership of the file in the session.save_path must also be set to phpmyadmin phpmyadmin
 
Last edited:

mitgib

Well-Known Member
Apr 9, 2006
59
0
156
Using K3oni response with slight change I solved the same problem:

view /usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini and see what session.save_path is already set to and make the permissions changes on that file. 1777 is not required 1755 worked as well.

Ownership of the file in the session.save_path must also be set to phpmyadmin phpmyadmin
I had changed the session.save_path to /tmp several times on one of our servers, and upcp reverts it to /var/cpanel/userhomes/cpanelphpmyadmin/sessions, which didn't exist on this server, so a quick and easy work around I used was

Code:
mkdir -p /var/cpanel/userhomes/cpanelphpmyadmin/sessions
chmod 1777 /var/cpanel/userhomes/cpanelphpmyadmin/sessions
 

lloyd_tennison

Well-Known Member
Mar 12, 2004
697
1
168
Setting to 1777 did not work for me, and I also had no user phpmyadmin, but I symlinked sessions to /tmp and that seems to be working.