Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WAMPSERVER can not access from url localhost but 127.0.0.1 is ok ( on win8 )

Tags:

wampserver

I just switch to win 8 from win 7. On win7 everything is OK with wampserver, but

When i try to access my wampserver via url localhost on win8, i got this error

Forbidden

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

but via url 127.0.0.1 is OK.

I try fix that error by change in phpmyadmin.conf into

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

Could anyone help me fix this error? Thanks!

like image 519
sangpq Avatar asked Jul 20 '12 15:07

sangpq


4 Answers

Modify the apache HTTPD.CONF file. Change "Listen 80" to "Listen 0.0.0.0:80 http://forum.wampserver.com/read.php?2,93143

like image 167
Sergiu Butnarasu Avatar answered Nov 16 '22 22:11

Sergiu Butnarasu


Change httpd.conf also and put Allow from all as given below.

<Directory "c:/wamp/www/">
    Options Indexes FollowSymLinks
    AllowOverride all
    Order Deny,Allow
    Allow from all
</Directory>
like image 28
Sreenath Avatar answered Nov 17 '22 00:11

Sreenath


If you have an Anti-virus like AVIRA or AVG it certenly blocked changes to localhost by adding the "::1" entry in the HOSTS file in c:\windows\system32\drivers\etc\HOSTS All you have to do is to remove this line (::1) or just comment it by adding "#" sign in front of it in the hosts file.

like image 24
Ashraf Emam Avatar answered Nov 16 '22 23:11

Ashraf Emam


You must install Visual Studio C++ 2010 SP1 Redistributable Package x86 or x64

This is a must when you install WampServer on a Windows 8 Machine.

Thing is, some software are built on MS Visual Studio, thus require VS C++ reditributable Packages to run.

VC10 SP1 vcredist_x86.exe 32 bits : microsoft.com/download/en/details.aspx?id=8328

VC10 SP1 vcredist_x64.exe 64 bits : microsoft.com/download/en/details.aspx?id=13523

If above downloads don't work, try:

Visual C++ Redistributable for Visual Studio 2012 Update 4

http://www.microsoft.com/en-us/download/details.aspx?id=30679

This for the applications built on latest Visual Studio 2012.

like image 37
Rahul Bali Avatar answered Nov 17 '22 00:11

Rahul Bali