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

The following errors were found : Drupal not upgrading using Softaculous

While upgrading the Drupal from 8.19 to 8.21 from cPanel >> Softaculous Application...

Response: 421 Home directory not available - aborting Error: Could not connect to server

While connecting to hosting service using FTP client, I was getting below error message...

Error while accessing site with special characters. Update collation for database.

I was getting the error while acccessing the http://yourdomainname/collat.php as below -Error...

Failed to send your message. Please try later or contact the administrator by another method - WordPress Contact Form is not working

While sending email from WordPress's contact form, I was getting below error -Failed to send your...

How to add/remove the trailing slashes in URLs using the .htaccess?

You can use the below code in the .htaccess file depending on the trailing slash required or not...

Powered by WHMCompleteSolution