The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

phpmyadmin session erros - but for some users only

Discussion in 'Database Discussions' started by Luzemario, Nov 29, 2015.

  1. Luzemario

    Luzemario Member

    Joined:
    Nov 29, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brasilia, DF, Brazil
    cPanel Access Level:
    Root Administrator
    Hi folks,

    There are several threads discussing this here, but I could not find a suitable solution to my case.

    phpmyadmin runs well on my server, but some users can't start it. Phpmyadmin shows the well-known "Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser." message.

    I don't think this have something to do with the sessions folder this time, since all other users and root can start it without issues.

    I checked permissions and the existence of "/var/cpanel/userhomes/cpanelphpmyadmin/sessions" folder, all are ok. Sessions are created when the sucessfull users run phpmyadmin as expected.

    I tried all tricks I could without success, so I opened the ticket #7396427 to track this.

    Any ideas?
     
  2. Luzemario

    Luzemario Member

    Joined:
    Nov 29, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brasilia, DF, Brazil
    cPanel Access Level:
    Root Administrator
    Another detail: new accouts have no issue, so there were some misconfiguration on these users.
     
  3. Luzemario

    Luzemario Member

    Joined:
    Nov 29, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brasilia, DF, Brazil
    cPanel Access Level:
    Root Administrator
    Hi people,

    The quick response from cPanel support solved it for me.

    phpmyadmin (and other per-user services) creates your session file on the USER's tmp folder.

    For instance, for /home/luzemario, session files are created on /home/luzemario/tmp. If for whatever reason the user does not have access permissions to this folder, phpmyadmin cannot create it's sessions file, then it shows the error.

    Thanks to the cPanel Technical Analyst Chris Icenhour, for explaining it to me.
     
    #3 Luzemario, Nov 29, 2015
    Last edited: Nov 29, 2015
  4. Luzemario

    Luzemario Member

    Joined:
    Nov 29, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brasilia, DF, Brazil
    cPanel Access Level:
    Root Administrator
    The tech analyst found the message below:

    28605 open("/home/user/tmp/sess_2lfrj5b0bs6i9igt17ekqv5jddq0t6dp", O_RDWR|O_CREAT|O_NOFOLLOW, 0600) = -1 EACCES (Permission denied)

    Someone can tell me where this is logged? phpmyadmin has a log?
     
  5. Luzemario

    Luzemario Member

    Joined:
    Nov 29, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brasilia, DF, Brazil
    cPanel Access Level:
    Root Administrator
    ok, this is in the /usr/local/cpanel/logs/access_log file.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page