Apache 403 Forbidden Error and Solution
Blogs20102010-12-01
| The Apache 403 Forbidden Error is quite normal: A 403 status code indicates that the client cannot access the requested resource. It means the permissions on the server do not allow what was being asked. If found this error, there are several ways to do quick fix. (1) Accessible: privilege issue
Usually for easy setup and access web application, I use a lot of aliases in httpd.conf, e.g.: (A) root dir: <Directory />
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride None
Order deny,allow
Allow from all
</Directory> (B) individual dir: <Directory /test>
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride None
Order deny,allow
Allow from all
</Directory>Either of these 2 ways makes http://localhost/test/ work fine.(3) make the interpreter searchable. e.g., in Windows, if php.exe is not at the %PATH% env variables, the 403 error occurs. So double check php is available in the %PATH%: Conrol Panel -> Advanced System settings -> Advanced -> Environment Variables -> System variables-> path:path=%PATH%;C:xamppphp; The interpreter php.exe is searchable, so the 403 issue is fixed. (4) Make sure you have permission to use .htaccess file for Apache web server. The above solved my most 403 issues. |
