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

ERROR: There was an error connecting to the server, Please verify the settings

While updating the WordPress plugin using FTP client I was getting the error as -'ERROR: There...

Error displaying the error page: The cachelite Cache Storage is not supported on this platform. (Joomla error)

While accessing the Joomla site, I was getting error as - Error displaying the error page: The...

Domain ****.com has outgoing email disabled.

I was getting below error message while sending emails - This message was created automatically...

Account Creation Status: failed Each username’s first 8 characters must be unique.

While creating the cPanel account on WHM, below error was generated - Account Creation Status:...

How to resolve the issue of WordPress site which downloads PHP files instead of parsing after cPanel migration?

After migrating the WordPress site on the cPanel server, the website was not loading, it was...

Powered by WHMCompleteSolution