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
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

User is over quota - Webmail

While accessing email account from Webmail, I was getting the error as -...

Install PHP-SSH2 extension in cPanel

PHP SSH2 extension to be loaded into the cPanel server as this module is not available inside...

How to reset WordPress administrator password?

You can follow below steps to reset the WordPress administrator password - 1. Login to cPanel2....

Unable to perform operation. No free disk space.

I'm getting this error when I tried to send an email from webmail:Unable to perform operation....

How to disable the php mail() function on cPanel with CloudLinux?

If your server installed cPanel with CloudLinux along alt-php and you want to disable php mail()...

Powered by WHMCompleteSolution