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 giving 401 Access Denied error

Discussion in 'Database Discussions' started by ryaneastland, Jun 22, 2014.

  1. ryaneastland

    ryaneastland Member

    Joined:
    Jun 22, 2014
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Hi I just setup cpanel on my VPS with centos 6.5 x64 I changed the home directory to /mnt/hosting so that the websites could be stored on another server with more HHD space now I went to get my website working inside of it and phpmyadmin wont open and gives 401 Access Denied
    a7eddabe48.png
    Could anyone help me I really need to get everything setup as soon as possible
    Thanks in advance
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    How is the secondary drive mounted, and how did you transfer the accounts to that drive? Do you notice any errors in /usr/local/cpanel/logs/error_log when attempting to access phpMyAdmin?

    Thank you.
     
  3. ryaneastland

    ryaneastland Member

    Joined:
    Jun 22, 2014
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    I mounted the sshfs drive then made the accounts

    I dont know what Im exactly looking for as a error so heres part of the log for today
    [removed]
     
    #3 ryaneastland, Jun 24, 2014
    Last edited by a moderator: Jun 24, 2014
  4. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Please refrain from linking to external sites for logs or screenshots. You can paste your log excerpt directly into the forum post and wrap it with CODE tags. If you click the "Go Advanced" button, you will see a button for CODE tags. It looks like a pound sign (#). CODE tags preserve spacing and use a fixed-width font, so the output looks just like on your display.

    For very long log excerpts, you can add them to forum replies as attachments.
     
  5. ryaneastland

    ryaneastland Member

    Joined:
    Jun 22, 2014
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    take 2 heres the log
     

    Attached Files:

    • log.txt
      File size:
      122.6 KB
      Views:
      4
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  7. ryaneastland

    ryaneastland Member

    Joined:
    Jun 22, 2014
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    5164571 thats the request id
    Im guessing thats the ticket number
     
  8. ryaneastland

    ryaneastland Member

    Joined:
    Jun 22, 2014
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    The problem was that the users tmp directory wasn't owned by them it was owned by root chowning the folder to the user fixed it but still didn't fix the problem when a new user is created so what I did was make a postwwwacct script that chowned the users tmp dir after the account was made
    Code:
    #!/usr/bin/php -q
    <?php
    $opts = array();
    $argv0 = array_shift($argv);
    while(count($argv)) {
    $key = array_shift($argv);
    $value = array_shift($argv);
    $opts[$key] = $value;
    }
    $user_name=$opts['user'];
    $path="/mnt/hosting/" . $user_name . "/tmp";
    chown($path, $user_name);
    ?>
    Theres the code if anyone runs into the same problem
     
Loading...

Share This Page