Access Denied. Unable to establish a PHP session.

I was getting below error while accessing phpMyAdmin -

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.

Solution :-

1. '/tmp' directory is not present - '/tmp' directory under cPanel >> File Manager >> /home/$user is not present.

2. Incorrect ownership of /home/$user/tmp folder. Set ownership as $user.
# chown $user. /home/$user/tmp

3. Incorrect Permission- Set permission of the tmp folder to 755.
#chmod 755 /home/$user/tmp

Note :- Make sure to replace $user with your account's username.

Let me know if you've any thoughts

Was this answer helpful?

 Print this Article

Also Read

Failed to open dir: Permission denied in /usr/local/lib/php/autoindex/default.php

While accessing the site I was getting error as -'Failed to open dir: Permission denied in...

How to backup single MySQL table?

Backup single MySQL table using shell command and phpMyAdmin 1. Creating dump file -...

How to Re-arrange accounts in WHM?

Please go through the following steps on How to Re-arrange accounts in WHM 1. Go to WHM and...

The MySQL server is currently offline. Mysql::initcache() failed: The mysql server is offline.

I was getting below error while accessing MySQL Databases from cPanel though MySQL service was...

Authentication Failed - Email password is not working in desktop application

I tried accessing the email account from one of the email client on my desktop. It was generating...

Powered by WHMCompleteSolution