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.

403 Forbidden error

Discussion in 'General Discussion' started by Diewoex, Mar 12, 2018.

  1. Diewoex

    Diewoex Member

    Joined:
    Mar 9, 2018
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Peru
    cPanel Access Level:
    Root Administrator
    Hello community, I have the following error when entering the web of one of my domains hosted in my CPanel.

    Error:

    Forbidden
    You don't have permission to access / on this server.

    Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

    because there is a listen that is due to the .htaccess settings, which are:

    RewriteEngine on

    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
    AuthName mydomain.com

    I hope you can help me :'(
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,215
    Likes Received:
    1,759
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  3. Diewoex

    Diewoex Member

    Joined:
    Mar 9, 2018
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Peru
    cPanel Access Level:
    Root Administrator
    Hello,
    thanks for the answer, what rules should I delete?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    You can remove the entire .htaccess file (unless you are using the existing entries for any additional purpose) and then use the "Directory Privacy" option in cPanel so that it automatically configures the correct rules.

    Thank you.
     
  5. Diewoex

    Diewoex Member

    Joined:
    Mar 9, 2018
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Peru
    cPanel Access Level:
    Root Administrator
    Thanks for the response, but even doing what you recommended to me the web keeps showing me that message :c
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,215
    Likes Received:
    1,759
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Could you let us know what appears in /usr/local/apache/logs/error_log when that error code appears in your browser?

    Thank you.
     
  7. Diewoex

    Diewoex Member

    Joined:
    Mar 9, 2018
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Peru
    cPanel Access Level:
    Root Administrator
    it's the last thing the log shows me.

    -------------------------------------------------------------------------------------------------------------------------------
    [22-Sep-2016 06:56:09 America/New_York] PHP Warning: PHP Startup: pdo_mysql: Unable to initialize module
    Module compiled with module API=20121212
    PHP compiled with module API=20100525
    These options need to match
    in Unknown on line 0
    [22-Sep-2016 08:28:50 America/New_York] PHP Warning: PHP Startup: PDO: Unable to initialize module
    Module compiled with module API=20121212
    PHP compiled with module API=20100525
    These options need to match
    in Unknown on line 0
    [22-Sep-2016 08:28:50 America/New_York] PHP Warning: PHP Startup: pdo_sqlite: Unable to initialize module
    Module compiled with module API=20121212
    PHP compiled with module API=20100525
    These options need to match
    in Unknown on line 0
    [22-Sep-2016 08:28:50 America/New_York] PHP Warning: PHP Startup: imagick: Unable to initialize module
    Module compiled with module API=20121212
    PHP compiled with module API=20100525
    These options need to match
    in Unknown on line 0
    [22-Sep-2016 08:28:50 America/New_York] PHP Warning: PHP Startup: pdo_mysql: Unable to initialize module
    Module compiled with module API=20121212
    PHP compiled with module API=20100525
    These options need to match
    in Unknown on line 0
    ---------------------------------------------------------------------------------------------------------------------------------

    I'm surprised there's nothing this year.
    another fact, is that the client only uses the hosting to store your website, and I dedicate that you have added an A record to point to the hosting to visualize your web
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    That looks like a PHP error_log file. Can you check the Apache error log? It's located at /usr/local/apache/logs/error_log and accessible with root access to the server.

    Thank you.
     
Loading...

Share This Page