xampp Access forbidden!

“Access forbidden!

You don’t have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

Error 403”

You might be getting this error if you are you are trying to use a different directory other than the “htdocs” directory provided by xampp. Most likely when you are creating your own virtual host.

If you are getting this error, you will need to alter your virtual host to include the “directory” directive :

<Directory "G:\YCSoftware">
Order Deny,Allow
Allow from

vhost config  file location

so your entire virtual host should more or less looks like this:

<VirtualHost *:80>
ServerAdmin ycsoftware@ycsoftware
DocumentRoot "G:\ycsoftware"
ServerName ycsoftware.net
ServerAlias www.ycsoftware.net
<Directory "G:\ycsoftware"> 
Order Deny,Allow 
Allow from 

of course, replace ycsoftware with your own stuffs.

1 comment Write a comment