Follow this Blog!

Sep 19, 2016

f Comment

Fixing Apache Web Server's 403 Forbidden Error: client denied by server configuration

Amazon When you set up Apache 2.4 and go to your website locally you get 403 Forbidden error and the following text in the webpage:

Forbidden

You don't have permission to access / on this server.
Apache/2.4.17 (Win64) PHP/5.6.16 Server at www.chtoen.com Port 80

In the apache error log you see this error:

[Wed Sep 07 18:12:20.356392 2016] [authz_core:error] [pid 4508:tid 856] [client 127.0.0.1:49834] AH01630: client denied by server configuration:...

How do you fix the Apache's 403 forbidden error where the error log shows "AH01630: client denied by server configuration"?

Solution

You may think it's due to "For all directories write Require all granted instead of Allow from all" or "remove this below mentioned line: Order allow,deny". But those are not the answers because the Apache configuration file that comes with Apache 2.4 obviously would use the correct configuration syntax.

The error may simply be that you set your document root wrong or your document root contains misspellings or errors in the following directive:

DocumentRoot "D:\software\eclipse\workspace\chtoen"

Or the following directive:

<Directory "D:\software\eclipse\workspace\chtoen">

Double check and see if it's the case. Make sure your document root has no misspellings or mistakes. It was the case for me when I was setting up WAMP 3 on my 64-bit Windows 7 computer.

Questions? Let me know!
Please leave a comment here!
One Minute Information - by Michael Wen
Find Michael on Google or Facebook
ADVERTISING WITH US - Direct your advertising requests to Michael