Simple Steps to Fix 403 Forbidden Errors in Wamp Server | Tips & Tricks

Chemicloud Web Hosting

Have you recently installed ? are you getting 403 error? Are you trying to access wamp to other computer connected through LAN with your PC that give 403 error? are you looking for information on how to this error quickly? Don’t worry, this article can solve your problem in minutes.

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 .

forbidden error msg

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

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

How to fix 403 forbidden error in Localhost

Quick Steps:

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

    • Open httpd.conf
    • Find text in   having Deny from all and replace with Allow from all
    • Also find this code:  Order Deny, Allow, Deny from all, Allow from 127.0.0.1
      and replace with Order Deny, Allow Deny from all, Allow from all
  • Now restart all services of the wamp server
  • Click on localhost or goto default browser and write localhost and it will start working

Detailed Steps to fix the error:

Step 1

Open “httpd.conf” file from below path.

C:wampbinapacheapache2.2.22confhttpd.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 Task Bar Icon

httpd config file location

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

Step 2

Find this lines from httpd.conf file


Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all

And replace it with


Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all

Step 3

Also find these code 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 below image:

Wamp restart all services

Step 5

In Wamp Server  click on Localhost as show in below image

Start local host

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

Its Done !

forbidden error solution

Solve 403 Forbidden Error in PhpMyAdmin

phpmyadmin error

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

Quick Steps:

  • Open phpmyadmin.conf file
  • Find this code:  Order Deny, Allow, Deny from all, Allow from 127.0.0.1
    and replace with Order Deny, Allow, Deny from all, Allow from all
  • Save the file and restart all services
  • Now access PhpMyadmin from your wamp server or directly access from the default browser
  • Its done!

If you are looking for detailed steps to fix this error, follow below guidelines.

Step 1

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

C:wampaliasphpmyadmin.conf

Step 2

In that file, you will find two similar source code in which you need to edit 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 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 in below image.

start phpmyadmin

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

phpmyadmin

If you are still getting 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 easy way.

Fix 403 Forbidden error on other computer in local network

Recently we received a comment from a user facing issue while accessing wamp on PC connected though local network. Here is the exact query from Vikram:

I have established a network using D-Link router. I don’t have a problem accessing WampServer instance from the machine where it is installed(say, Machine A). But, if I try to launch providing say; http:// from another machine (say, Machine B)
I am getting Forbidden error. I could ping from machine B to Machine A.
Tried playing around httpd.conf … having ‘Allow from all’.
Do you have any hint for this ?

Solution:

Later, Vikram has suggested the solution to this 403 forbidden error while accessing wamp on network device. You can resolve this issue by editing ‘httpd-vhosts.conf’ file:

Change 'Require local' to 'Require all granted'.

Final Thoughts

As Wamp server is periodically publishing never and advance version of WAMP that may have different functionality. If you find any issues while fixing Forbidden error on your latest wamp server, feel free to write us here by comment or drop us an email. Our technical team will try to resolve it and will provide best possible solution.

You might also like More from author

Comments are closed.