Fix Error 403 – Accesss Forbidden problem on XAMPP

XAMPP is a web server solution stack package that helps us to build a development envirnment in minutes, but you may meet this Error 404 problem when accessing your website.

It is because that web server denys all requests by default, so we need to do a bit modification to the configuation file.

Step 1. Open httpd.conf

Open the configuation file called httpd.conf

Step 2. Find appropriate code

Then find the code section that looks like the following text.

#
# <Directory> blocks below.
#
<Directory />
AllowOverride none
Require all denied
</Directory>

Step 3. Modify code

Comment out AllowOverride none and Require all denied, then add the following code.

Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order deny,allow
Deny from all
Allow from 127.0.0.1

Save changes. The next step is to restart Apache to take effects.

Full example:

#
# <Directory> blocks below.
#
<Directory />
# AllowOverride none
# Require all denied

AllowOverride All
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Directory>

Step 4. Restart

Start Apache web server.

Author

Your markdown plugin for wordpress looks great. Only 10 reviews it must be underrated. Lots of people use Ghost just for the live preview and simplicity of markdown syntax but everyone would rather use WP if it had the same thing. Ghost is a nightmare as even the DB structure is not supported in new versions, and older versions of Nodejs are needed just to run an older version of Ghost. This can be a nightmare and time waster even for a developer.

The markdown theme has been super awesome with amazing features.
– Thanks

Fix Error 403 - Accesss Forbidden problem on XAMPP - TerryL

Fix Error 403 – Accesss Forbidden problem on XAMPP

XAMPP is a web server solution stack package that helps us to build a development envirnment in minutes, but you may meet this Error 404 problem when accessing your website.

It is because that web server denys all requests by default, so we need to do a bit modification to the configuation file.

Step 1. Open httpd.conf

Open the configuation file called httpd.conf

Step 2. Find appropriate code

Then find the code section that looks like the following text.

#
# <Directory> blocks below.
#
<Directory />
AllowOverride none
Require all denied
</Directory>

Step 3. Modify code

Comment out AllowOverride none and Require all denied, then add the following code.

Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order deny,allow
Deny from all
Allow from 127.0.0.1

Save changes. The next step is to restart Apache to take effects.

Full example:

#
# <Directory> blocks below.
#
<Directory />
# AllowOverride none
# Require all denied

AllowOverride All
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Directory>

Step 4. Restart

Start Apache web server.