Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Directory protection not working

Discussion in 'User Experience' started by N1ghteyes, Jan 24, 2016.

  1. N1ghteyes

    N1ghteyes Active Member

    Joined:
    Mar 3, 2014
    Messages:
    33
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Reading, UK
    cPanel Access Level:
    Root Administrator
    Twitter:
    As per thread title, In Cpanel 54.01, when trying to protect a directory through the directory privacy option with the Paper Lantern theme, the request isn't completed fully.

    After a few mins of working through this I discovered the following:-
    - The passwd file is created correctly, in the correct location
    - It is given the correct permissions
    - The htaccess file is not correctly updated with the required Auth rules
    - Manually editing the htaccess file is possible, though hardly ideal for less technical users.

    I couldn't get this to work with any set of permissions settings on the .htaccess file.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. N1ghteyes

    N1ghteyes Active Member

    Joined:
    Mar 3, 2014
    Messages:
    33
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Reading, UK
    cPanel Access Level:
    Root Administrator
    Twitter:
    to manually fix, add the following to your .htaccess (replacing where appropriate):

    AuthType Basic
    AuthName "<YourUsername>"
    AuthUserFile "/home/<Account>/.htpasswds/public_html/<foldername>/passwd"
    require valid-user
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,961
    Likes Received:
    1,821
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    I'm unable to reproduce this issue in cPanel version 54.0.7. It's scheduled for publication to the "Current" build tier later today. Could you verify if the issue persists after updating to this version?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. N1ghteyes

    N1ghteyes Active Member

    Joined:
    Mar 3, 2014
    Messages:
    33
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Reading, UK
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi Michael,

    No luck I'm afraid. Upgraded to 54.0.7 and the issue persists. Tested on both the X3 and paper lantern themes, and on a couple of different accounts.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,961
    Likes Received:
    1,821
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. N1ghteyes

    N1ghteyes Active Member

    Joined:
    Mar 3, 2014
    Messages:
    33
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Reading, UK
    cPanel Access Level:
    Root Administrator
    Twitter:
    I'm getting:
    The provided IP (5.133.180.184) and support access id do not match.

    When using the support ID located on WHM, for the hostname I'm using....
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. N1ghteyes

    N1ghteyes Active Member

    Joined:
    Mar 3, 2014
    Messages:
    33
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Reading, UK
    cPanel Access Level:
    Root Administrator
    Twitter:
    Ah.. ignore me. Multiple Ip addresses for SSL.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. N1ghteyes

    N1ghteyes Active Member

    Joined:
    Mar 3, 2014
    Messages:
    33
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Reading, UK
    cPanel Access Level:
    Root Administrator
    Twitter:
    Ticket ID: 7441573
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #8 N1ghteyes, Jan 25, 2016
    Last edited by a moderator: Jan 26, 2016
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice