Diewoex

Member
Mar 9, 2018
8
0
1
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 :'(
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Thanks for the response, but even doing what you recommended to me the web keeps showing me that message :c
Could you let us know what appears in /usr/local/apache/logs/error_log when that error code appears in your browser?

Thank you.
 

Diewoex

Member
Mar 9, 2018
8
0
1
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
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.