Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error Forbidden WampServer [closed]

Tags:

wampserver

I instaled wamp 64bit in my windows 8 ; after install my icon was orange color but , i click form service apache > install service \ and Apache is ok running (Changed Color to Green)

But After open localhost/ in my browser , Show me This error :

Forbidden 

You don't have permission to access / on this server. enter code here

but from 127.0.0.1 is running very good (from localhost not working)

my windows is microsoft windows 8

like image 538
Erfan Safarpoor Avatar asked Aug 28 '12 13:08

Erfan Safarpoor


People also ask

Why Wampserver 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.

What is the error code for forbidden?

The HTTP 403 Forbidden response status code indicates that the server understands the request but refuses to authorize it.

What is the use of Wampserver?

WampServer is a Windows web development environment. It allows you to create web applications with Apache2, PHP and a MySQL database. Alongside, PhpMyAdmin allows you to manage easily your databases.


2 Answers

Found this question on Google.

For Windows 8, along with Erfan Safarpoor response; be sure to “Allow from 127.0.0.1″ to “Allow from 127.0.0.1 ::1″ as well as change "Listen 80" to "Listen 0.0.0.0:80" - This will resolve the issue of getting Forbidden on localhost and phpmyadmin. :3

like image 126
r109 Avatar answered Sep 29 '22 22:09

r109


i remove this line from httpd.conf apache Deny from all

before my change :

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

after my changes :

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

My problem was solved this way

good time :D

like image 43
Erfan Safarpoor Avatar answered Sep 29 '22 20:09

Erfan Safarpoor