Blog

Wamp Server 403 Forbidden Error – You don’t have permission to access / on this server

If you are facing 403 forbidden error in Wamp Server, it clearly indicate that the server is preventing you to accessing particular resources. 403 forbidden is the most common error being faced by many developers while installing WAMP server on PC. If you’re one who just installed Wamp server 3.0 and got this error message “403 Forbidden Error – You don’t have permission to access / on this server.”, don’t panic, you can fix this forbidden error in just 5 minutes by following these 5 simple steps.

Before I start explaining the steps, here is the possible reason why this error occurs:

Forbidden errors generally occur due to permission mismatch and can solve by editing .conf and .conf files. In most cases, 403 forbidden errors will occur in both “LocalHost” and “PhpMyadmin”. In this tutorial, we will explain how to solve the errors for both.

How to fix 403 forbidden error in Localhost

Quick Steps:

If you are familiar with most of the parts, follow these quick steps to solve forbidden errors:

Step 1

Open “httpd.conf” file from below path.

C:\wamp\bin\apache\apache2.2.22\conf\httpd.conf (You need to locate your drive where you have installed wamp. In this case, we have installed wamp in C drive)

Or

Open from TaskBar Icon

Left Click on Wamp Server Icon => Apache =>httpd.conf

Step 2

Find these lines from httpd.conf file

<Directory/>
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>

And replace it with

<Directory/>
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>

Step 3

Also, find these codes in httpd.conf file

Order Deny,Allow
Deny from all
Allow from 127.0.0.1

And replace it with

Order Deny,Allow
Deny from all
Allow from All

Save the file and close it.

Step 4

Then go to Wamp Server Icon, Right-click on it, and Press Restart All Services. See the below image:

Step 5

In Wamp Server  click on Localhost as shown in the below image

OR go to your default web browser and write “Localhost” at URL

It’s Done!

Solve 403 Forbidden Error in PhpMyAdmin

Here is the simple solution of Forbidden error in while you are accessing Phpmyadmin in your wamp server.

Quick Steps:

Step 1

Open “phpmyadmin.conf” file from the below path (first locate your wamp installation. In our case, we have installed them in C drive)

C:\wamp\alias\phpmyadmin.conf

Step 2

In that file, you will find two similar source codes in which you need to edit a small portion explain below. Make sure you edit both source codes.

Find this Code

Order Deny,Allow
Deny from all
Allow from 127.0.0.1

And replace it with

Order Deny,Allow
Deny from all
Allow from all

Step 3

Now follow step 4 explained in the above solution in which you need to restart all services from your wamp.

Step 4

Now, start your wamp server and click on PHPMyAdmin as shown below image.

After successfully editing code and specified file, you will see the below console in your web browser:

If you are still getting the same error or need any other resolution, don’t hesitate to write here by comment. I will show you how to fix those errors in an easy way.

Follow Instagram Studymotion

0
  Related Posts
  • No related posts found.