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!

SOLVED How to edit 401/2/3/4 error page file

Discussion in 'General Discussion' started by Sametto Chan, Jan 4, 2017.

  1. Samet Chan

    Samet Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    342
    Likes Received:
    30
    Trophy Points:
    103
    cPanel Access Level:
    Root Administrator
    Twitter:
    "HTTP error 401 You do not have permission to access this page."

    Or anyone error, 401,2,3,4

    I would like to this change in file.
     
  2. Eminds

    Eminds Well-Known Member

    Joined:
    Nov 10, 2016
    Messages:
    267
    Likes Received:
    20
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Samet Chan

    Samet Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    342
    Likes Received:
    30
    Trophy Points:
    103
    cPanel Access Level:
    Root Administrator
    Twitter:
    That documentation tutorial is old version.

    I copy that word: Home >> Advanced >> Error Pages, "Advanced or Error Pages" I coped in my WHM search could not found.

    Confused.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,386
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    This option is available in the cPanel interface. You'd login via cPanel for the specific account and utilize the Error Pages option.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Samet Chan

    Samet Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    342
    Likes Received:
    30
    Trophy Points:
    103
    cPanel Access Level:
    Root Administrator
    Twitter:
    That is domain only, myself created in 403/4.php it's protected more than this, it's just made was me.

    What i say, i must in IP Server for cPanel login self "You do not have access to this cPanel"

    I need to anywhere that 401/2/3/4/.... edit in file on server cPanel & WHM. Not my site.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,386
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Samet Chan

    Samet Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    342
    Likes Received:
    30
    Trophy Points:
    103
    cPanel Access Level:
    Root Administrator
    Twitter:
  8. Samet Chan

    Samet Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    342
    Likes Received:
    30
    Trophy Points:
    103
    cPanel Access Level:
    Root Administrator
    Twitter:
    Both is not clear for me. Please tell me to where folder/file in "HTTP error 401 You do not have permission to access this page." in cPanel and WHM only. Not website/site.
     
  9. Samet Chan

    Samet Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    342
    Likes Received:
    30
    Trophy Points:
    103
    cPanel Access Level:
    Root Administrator
    Twitter:
    Now, I found it.

    /usr/local/cpanel/base/unprotected/cpanel/templates/access_denied.tmpl

    HTML:
    [% WRAPPER 'templates/_error_wrapper' -%]
        <h2>[% uri.html() %]</h2>
        <p>[% locale.maketext('You do not have permission to access this page.') %]</p>
        [% IF page_message %]
          <blockquote>[% locale.makevar(page_message) FILTER html %]</blockquote>
        [% END %]
    
    [% END -%]
    
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,386
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Sametto Chan likes this.
  11. Samet Chan

    Samet Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    342
    Likes Received:
    30
    Trophy Points:
    103
    cPanel Access Level:
    Root Administrator
    Twitter:
  12. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,386
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Yes, however you'd need to change the default login template to your custom one via the following option under "Display" in "WHM >> Tweak Settings":

    Default login theme

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. Samet Chan

    Samet Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    342
    Likes Received:
    30
    Trophy Points:
    103
    cPanel Access Level:
    Root Administrator
    Twitter:
    I know it, I mean.

    If I put cpanel-anime cloned alike cpanel default, But I edited for background and login CSS, etc more in cpanel-anime only. If feature for an update in WHM/cPanel will default my created cpanel-anime changed to default again or not? I don't want to default in cpanel-anime again. It's Theme Manager.
     
  14. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,386
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    The changes to the files under the cloned theme directory (e.g. /usr/local/cpanel/base/unprotected/cpanel-anime/templates/access_denied.tmpl) are preserved through updates.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Sametto Chan likes this.
  15. Samet Chan

    Samet Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    342
    Likes Received:
    30
    Trophy Points:
    103
    cPanel Access Level:
    Root Administrator
    Twitter:
    Alright. This is not solved thread yet, I'm busy hold on later. Edit to this test for 401 error page.
     
  16. Samet Chan

    Samet Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    342
    Likes Received:
    30
    Trophy Points:
    103
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello, @cPanelMichael, Sorry for passed away this thread.

    401/403/404 file is really worked it for me. Edit to where file.

    This thread is solved now. :)
     
    cPanelMichael likes this.
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