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.

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.
     
  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
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    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.
     
  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.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    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.
     
  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....
     
  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.
     
  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
     
    #8 N1ghteyes, Jan 25, 2016
    Last edited by a moderator: Jan 26, 2016
Loading...

Share This Page