403 Forbidden error
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*
order deny,allow
deny from all
allow from all
order deny,allow
deny from all
AuthName mydomain.com
I hope you can help me :'(
-
Hello, The .htaccess rules are blocking access to the domain name. If you want to password protect the website, then you should remove those existing rules and then setup password protection via the following option in cPanel: Directory Privacy - Version 70 Documentation - cPanel Documentation Thank you. 0 -
Hello, thanks for the answer, what rules should I delete? 0 -
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. 0 -
Thanks for the response, but even doing what you recommended to me the web keeps showing me that message :c 0 -
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.0 -
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 0 -
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. 0
Please sign in to leave a comment.
Comments
7 comments