Bobcares

How to fix forbidden error in wamp server?

by | Jul 29, 2020

The 403 forbidden error commonly triggers due to permission mismatch while installing the WAMP server.

As a part of our Server Management Services, we help our Customers to fix permission related errors regularly.

Let us today discuss the possible causes and fixes for this error.

What is forbidden error in wamp server?

During the installation of wamp server or during an upgrade operation, it often triggers the forbidden error message. A typical error message looks like the one given below:
forbidden error in wamp server

Forbidden errors generally occur due to permission mismatch and we can solve it by editing .conf file. In most cases, 403 forbidden errors will occur in both “LocalHost” and “PhpMyadmin”. Let us now look at how to fix this error.

How to fix 403 forbidden errors in wamp server?

The 403 forbidden error can be fixed by replacing the deny rules in the configuration file. This can be performed with the steps below:

1.Open “httpd.conf” file from below path.

C:\wamp\bin\apache\apache2.2.22\conf\httpd.conf (This is the drive where you have installed wamp).

Or

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

2.Once the http.conf file is identified, 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>

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.

4.Then go to Wamp Server Icon, right click on it and Press Restart All Services.

5.In Wamp Server, click on Localhost.OR goto your default web browser and write “Localhost” in the URL.

Steps to fix the above error in phpmyadmin
  1. Go to the C :/WAMP/alias/phpmyadmin.conf (click to open the file).
  2. Then, Press CTRL+F and find the following code
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1

    And replace this code with the following code

    Order Deny,Allow
    Deny from all
    Allow from all

    Save and close the file.

  3.  Now restart all services of WAMP Server.
  4. Open Web Browser and write localhost/phpmyadmin. It will start working

[Need any further assistance in fixing permission errors? – We’re available 24*7]

Conclusion

In short, 403 forbidden error commonly triggers due to permission mismatch while installing the WAMP server. Today, we saw how our Support Engineers fix this error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

7 Comments

  1. Evissa

    Böyle bi sorunum vardı bu yazı sayesinde çözdüm teşekkür ederim.

    Reply
  2. abcd

    Thanks a lot for your help. It freaking worked !!!!!

    Reply
  3. Valsa

    Thanks alot, you solved all my problems with wamp server.

    Reply
  4. Samoda Wijesooriya

    thank you very much. keep it up and it is very useful to persons like us.

    Reply
  5. Jerry

    Sorry, but this did not work for me, it’s made no difference

    Reply
    • Hiba Razak

      Hi,

      Our Experts can help you with the issue, we’ll be happy to talk to you on chat (click on the icon at right-bottom).

      Reply
  6. ANdy

    WORKS! However the file was httpd.conf and not httpd-ssl.conf or httpd-vhosts.conf.

    I just threw it on the end of the file and it WORKS. Thanks mate.

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.