On accessing PHPMyAdmin via cpanel, we will be getting an error as given below if the ownership/permission of the tmp folder for the particular cpanel user is wrong.
“Access Denied Unable to establish a PHP session. If you believe that this is in error or inadvertent, contact your system administrator and ask them to review your server settings.”
The fix for this error is as follows:
1. Login to the server via SSH as root.
2. Check the permission and ownership of tmp folder in the location /home/user , where ‘user’ is the cpanel username.
root@server [/home/user]# ls -la | grep tmp
drwx—— 8 root root 4096 Apr 1 2013 tmp/
3. The permission of tmp folder should be 755.
root@server [/home/user]# chmod 755 tmp
4. The ownership of tmp folder should be username.
root@server [/home/user]# chown user. tmp
This should fix the issue for you.
On the other case, if you won’t find any directory named tmp in the location /home/user , make a directory tmp using the command given below and assign proper permission/ownership as mentioned already.
root@server [/home/user]# mkdir tmp
root@server [/home/user]# chmod 755 tmp
root@server [/home/user]# chown user. tmp
If you require help, contact SupportPRO Server Admin