WAMP 403 Forbidden message on Windows 7

后端 未结 26 1499
抹茶落季
抹茶落季 2020-11-27 12:51

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 m

相关标签:
26条回答
  • 2020-11-27 13:08

    if you have used localhost/phpmyadmin/

    simply use

    127.0.0.1/phpmyadmin/ for PHPMyAdmin

    127.0.0.1/sqlbuddy/ for SQLBuddy

    or if you have used localhost:8080/phpmyadmin/ then

    127.0.0.1:8080/phpmyadmin/ for PHPMyAdmin

    127.0.0.1:8080/sqlbuddy/ for SQLBuddy

    0 讨论(0)
  • 2020-11-27 13:08

    I had this problem too. The route of my problem was I had made a mistake in my vhosts.conf file. If you are using vhosts this is another thing to check

    0 讨论(0)
  • 2020-11-27 13:09

    I have found that if you are using ammps that for some reason its always forbidden when its in your root folder so i put it in the directory above my root folder and made a alias in the httpd.conf using this

    Alias /phpmyadmin "C:/Program Files (x86)/Ampps/phpMyAdmin"

    please note i am using ammps and i dont know for sure if it will work for others but its worth a try ;)

    0 讨论(0)
  • 2020-11-27 13:10

    For Apache version 2.4.x simply replace Require local with Require all granted in httpd.conf file inside <Directory "c:/wamp/www/"> tag then Restart all services

    0 讨论(0)
  • 2020-11-27 13:11

    I faced this issue with wamp on windows 7. Adding following code to httpd-vhosts.conf solved the issue for me.

    <VirtualHost *:80>
      DocumentRoot "F:/wamp_server/www/"
      ServerName localhost
    </VirtualHost>
    
    0 讨论(0)
  • 2020-11-27 13:12

    I tried the configs above and only this worked for my WAMP Apache 2.4.2 config. For multiple root site without named domains in your Windows hosts file, use http://locahost:8080, http://localhost:8081, http://localhost:8082 and this configuration:

    #ServerName localhost:80
    ServerName localhost
    
    Listen 8080
    Listen 8081
    Listen 8082
    #..... 
    <VirtualHost *:8080>
        DocumentRoot "c:\www"
        ServerName localhost
        <Directory "c:/www/">
            Options Indexes FollowSymLinks
            AllowOverride all
            Require local
        </Directory>
    </VirtualHost>
    <VirtualHost *:8081>
        DocumentRoot "C:\www\directory abc\svn_abc\trunk\httpdocs"
        ServerName localhost
        <Directory "C:\www\directory abc\svn_abc\trunk\httpdocs">
            Options Indexes FollowSymLinks
            AllowOverride all
            Require local
        </Directory>
    </VirtualHost>
    #<VirtualHost *:8082></VirtualHost>.......
    
    0 讨论(0)
提交回复
热议问题