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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

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

  1. Sametto Chan

    Sametto Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    259
    Likes Received:
    24
    Trophy Points:
    93
    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:
    211
    Likes Received:
    13
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
  3. Sametto Chan

    Sametto Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    259
    Likes Received:
    24
    Trophy Points:
    93
    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:
    38,658
    Likes Received:
    1,427
    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.
     
  5. Sametto Chan

    Sametto Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    259
    Likes Received:
    24
    Trophy Points:
    93
    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:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  7. Sametto Chan

    Sametto Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    259
    Likes Received:
    24
    Trophy Points:
    93
    cPanel Access Level:
    Root Administrator
    Twitter:
  8. Sametto Chan

    Sametto Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    259
    Likes Received:
    24
    Trophy Points:
    93
    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. Sametto Chan

    Sametto Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    259
    Likes Received:
    24
    Trophy Points:
    93
    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:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Sametto Chan likes this.
  11. Sametto Chan

    Sametto Chan Well-Known Member

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

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    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.
     
  13. Sametto Chan

    Sametto Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    259
    Likes Received:
    24
    Trophy Points:
    93
    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:
    38,658
    Likes Received:
    1,427
    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.
     
    Sametto Chan likes this.
  15. Sametto Chan

    Sametto Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    259
    Likes Received:
    24
    Trophy Points:
    93
    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. Sametto Chan

    Sametto Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    259
    Likes Received:
    24
    Trophy Points:
    93
    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