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 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
- Go to the C :/WAMP/alias/phpmyadmin.conf (click to open the file).
- 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.
- Now restart all services of WAMP Server.
- 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.
Böyle bi sorunum vardı bu yazı sayesinde çözdüm teşekkür ederim.
Thanks a lot for your help. It freaking worked !!!!!
Thanks alot, you solved all my problems with wamp server.
thank you very much. keep it up and it is very useful to persons like us.
Sorry, but this did not work for me, it’s made no difference
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).
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.