Your Ad can be there
+ Post New Thread
Results 1 to 3 of 3

Thread: PHPMyAdmin error: Unable to establish a PHP session, Access Denied 401

  1. #1
    Join Date
    Mar 2013

    PHPMyAdmin error: Unable to establish a PHP session, Access Denied 401

    When accessed PHPMyAdmin from my cpanel hosting account i got 401 Access Denied error with message "Unable to establish a PHP session".

    What fixed this is to go to cPanel / File manager and make sure /home/username/tmp directory exist and has 755 permissions..

  2. #2

    Is this useful / helpfull? Yes | No
    Some times /tmp permission too cause this issue. you have to confirm the "session.save_path" on php.ini and check the permission of that path.

  3. #3
    Junior Member Rex_M's Avatar
    Join Date
    Apr 2022

    Is this useful / helpfull? Yes | No
    Hello Fli,

    I hope you are doing well!

    Usually, this error occurs when the permission or ownership of the tmp folder for this user is wrong. Thus, ensure the ownership of /home/$username/tmp folder is set to $user and permission as 755. If you have the above settings are accurate, you won't get this error. Also, you will have to follow the below steps to resolve the problem.

    Step-1 SSH into the server as root.
    Step-2 Check the permission and ownership of /home/$user/tmp folder. Set ownership as $user.
    # chown $user. /home/$user/tmp
    Step-3 Set the permission of the tmp folder to 755.
    #chmod 755 /home/$user/tmp
    Step-4 Restart the PHP service and check if the error is gone.

    Here, the '$user' can be replaced with your respective username.

    If you think the error above is inadvertent, you will have to contact your system administrator and tell them to review your server settings.


+ Post New Thread

Similar Threads

  1. Replies: 2
    Last Post: 06-28-2021, 06:04 PM
  2. Replies: 0
    Last Post: 12-14-2017, 11:03 PM
  3. How to fix named error: permission denied
    By Fli in forum Linux Forums
    Replies: 0
    Last Post: 04-16-2017, 12:20 PM
  4. Replies: 0
    Last Post: 11-03-2015, 08:59 AM
  5. Replies: 0
    Last Post: 04-21-2014, 12:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
 Protected by : ZB BLOCK  &  StopForumSpam