WAMP Server is one of the essential programs that web developers must install on their computers to run and test PHP code natively in their browsers.
But most people frequently experience minor problems when installing this helpful program, one of these problems is the 403 Forbidden error.
Have you ever launched the WAMP server engine after installing it and attempting to access localhost in your web browser and received a 403 Forbidden error page?
Or are you attempting to access WAMP from a different computer that is LAN-connected to the PC and it’s displaying the 403 Forbidden error?
Don’t worry, because this article provides a simple and quick guide on fixing the 403 forbidden error in the WAMP server.
What Is 403 Forbidden Error In Wamp Server?
403 Forbidden Error frequently results in the disallowed error message during the wamp server installation process or during an upgrade activity.
The most common cause of 403 Forbidden Errors is a permission mismatch, which may be fixed by modifying the .conf file.
The most frequent error that many developers encounter when installing the WAMP server on a PC is 403 prohibited.
So don’t worry if you recently installed WAMP server 3.0 and encountered the problem message “403 Forbidden Error – You don’t have the authorization to access this server.”
Most of the time, problems with 403 Forbidden Error will appear in both “LocalHost” and “PhpMyadmin”.
Read Also: Master Sync Has Been Disabled: Here’s A Quick Fix on S4, S5 & S6
How To Fix LocalHost 403 Forbidden Error
Quick Steps:
If you are familiar with most of the components, you can fix 403 Forbidden errors quickly by using the following steps:
- Dispatch httpd.conf
- Replace any content in the directory that says “Deny from all” with “Allow from all”.
- Order Deny, Allow, Deny from everyone
- Allow from 127.0.0.1 is another code you can find, so substitute with Order Deny, Allow from All
- Restart the wamp server’s services right away.
- To begin using it, either click localhost or open your regular browser and type localhost.
Detailed Steps
If you’re still confused, the detailed steps to fix the 403 Forbidden error include:
Step 1
Open “httpd.conf” in the location below.
C:\wamp\bin\apache\apache2.2.22\conf\httpd.conf (You need to locate your drive where you have installed WAMP)
Or
from the TaskBar Icon, click on the Wamp Server icon, then click Apache, then httpd.conf.
Step 2
In the httpd.conf file, locate these lines.
<Directory/>
FollowSymLinks options
No AllowOverride
Order: deny, allow
Deny everything
</Directory>
and then substitute with
<Directory/>
FollowSymLinks options
AllowOverride None
Order: deny, allow
Allow from all
</Directory>
Step 3
Find these codes in the httpd.conf file too.
Order: Deny, Allow
Deny everything
Allow from 127.0.0.1
and then substitute with
Order: Deny, Allow
Deny everything
Allow from All
Close the file after saving it.
Step 4
Next, right-click the Wamp Server icon and press relaunch each service.
Step 5
In the WAMP server, click on Localhost or enter “Localhost” at the URL in your chosen web browser.
Read More: Best Five (5) Snapchat Spy Apps – Explained
How To Fix 403 Forbidden Error In PhpMyAdmin
There is also a solution for the 403 Forbidden error that appears when you try to access Phpmyadmin on your WAMP server.
Quick Steps:
- Dispatch phpmyadmin.conf
- Find the code, Order Deny, Allow, Deny from all, Allow from 127.0.0.1
- Then substitute the code, order deny, allow, deny from all, allow from all in its stead
- Restart all services after saving the file.
- Now use your wamp server to visit PhpMyadmin or go directly to the default browser.
Detailed Steps
For a detailed solution to fixing the 403 Forbidden Error on PhpMyAdmin, follow the steps below:
Step 1
Open “phpmyadmin.conf” file by following the steps below (first locate your WAMP installation) or go to C:\wamp\alias\phpmyadmin.conf
Step 2
Two comparable source codes that you must alter a little piece of are located in that file and are explained below. Make sure both source codes are edited.
Order: Deny, Allow
Deny from all
Allow From 127.0.0.1
and then substitute with
Order: Deny, Allow
Deny from all
Allow from all
Save and close the file.
Step 3
Restart all services on your WAMP server.
Step 4
Open the web browser and type localhost/phpmyadmin. It will start working.
FAQ
How Can I Access Localhost In WAMP Server?
Simply click the green “W” icon in your system tray, then select Localhost to display the localhost homepage. A new browser tab will open with the localhost homepage on it.
Why Does It Keep Saying 403 Forbidden?
The 403 Forbidden Error appears when you attempt to open a website or other resource in your web browser but are not authorized to do so.
It is known as a 403 error because the webserver uses that HTTP status code to identify that type of error.
Why WAMP Server Is Not Working?
Whatever port is used by Apache or Wamp server is already in use by another service, hence changing the port of this Wampserver service is required if you wish to start the Apache service.
To change the port, you have to go to the Wampserver menu- Apache- Open httpd.conf file.
How Do I Know If Wamp Is Working?
Test “localhost” by clicking on the wamp server icon in the taskbar. Click the ” phpinfo() ” link on the page if that succeeds.
Your wamp server is functioning if that also succeeds, and you should be able to run php files. If not, you must ensure that it is set up and launched correctly.
Can I Install WAMP and XAMPP On the Same Computer?
You can install both WAMP and XAMPP on the same computer.
What Does Forbidden Site Mean?
The 403 Forbidden error is an HTTP status code that indicates that, for whatever reason, accessing the page or resource you were trying to access is strictly prohibited.
What Is A 403 Slang?
In slang, the term “403” refers to someone who is out of your league, as in the phrase “Don’t even go there, she’s 403.
The term “403” was originally a technical term for “Deny Access To,” which is a return code seen on a Web page to indicate you don’t have the necessary permission to access the server.
How Do You Fix 403 Error The Request Could Not Be Satisfied Cloudfront?
Review the requests to make sure they don’t satisfy the criteria for any AWS WAF rules with Action set to Block to fix the Request Blocked Error when the default action is Allow.
If valid requests fulfill the criteria for a rule that blocks the requests, then update the rule to permit the request.
How Do I Make WAMP Server Accessible Online?
Follow these steps:
1. You need to port forward your router to open port 80.
2. Check your httpd.config.
3. Access your site via your IP or go to www.whatismyip.com
4. If that doesn’t work, disable your windows firewall.
Conclusion
Usually, when installing the WAMP server, a permission mismatch frequently results in the 403 disallowed error.
As the WAMP server releases newer, perhaps more functional versions of WAMP regularly, this problem might stop.
But with the information in this article, you’ll be able to resolve all 403 Forbidden errors on your WAMP server.