Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WAMP 403 Forbidden message on Windows 7

I have installed WAMP version 2.1 on my windows 7 machine. When i browse to localhost in my browser, the WAMP server page is visible.

But when I browse to my IP in my browser, I get the message

403 Forbidden: You don't have permission to access / on this server.

Any suggestions?

like image 642
Jake Avatar asked Nov 20 '11 21:11

Jake


People also ask

What does 403 Forbidden mean on my computer?

What is a 403 Forbidden Error? The 403 Forbidden error is an HTTP status code which means that accessing the page or resource you were trying to reach is absolutely forbidden for some reason. This article contains basic troubleshooting instructions for how you can identify and resolve a 403 Forbidden error.

Why my WAMP server is not working?

It says that whatever port is used by Apache (Wamp server) is currently used by some other service, so if you want to start the Apache service then you have to changethe port of this Wampserver service. Now for changing the port you have to go to Wampserver menu => Apache. Open httpd. conf file.


2 Answers

The access to your Apache server is forbidden from addresses other than 127.0.0.1 in httpd.conf (Apache's config file) :

<Directory "c:/wamp/www/">     Options Indexes FollowSymLinks     AllowOverride all     Order Deny,Allow     Deny from all     Allow from 127.0.0.1 </Directory> 

The same goes for your PHPMyAdmin access, the config file is phpmyadmin.conf :

<Directory "c:/wamp/apps/phpmyadmin3.4.5/">     Options Indexes FollowSymLinks MultiViews     AllowOverride all         Order Deny,Allow         Deny from all         Allow from 127.0.0.1 </Directory> 

You can set them to allow connections from all IP addresses like follows :

AllowOverride All Order allow,deny Allow from all 
like image 144
Nasreddine Avatar answered Sep 21 '22 13:09

Nasreddine


I found a simpler fix...

Although the icon was green WAMP still needs to be "Put Online" (last item of menu when left-clicking icon).

After that I had access as normal.

like image 23
Bobs Yeruncle Avatar answered Sep 21 '22 13:09

Bobs Yeruncle