Forbidden: You don't have permission to access / on this server, WAMP Error

前端 未结 5 2189
慢半拍i
慢半拍i 2020-12-05 15:23

I have installed wamp on windows 8 and received above error whenever I go to localhost or phpmyadmin. After much searching I found many ans

5条回答
  •  天命终不由人
    2020-12-05 15:34

    By default wamp sets the following as the default for any directory not explicitly declared:

    
        AllowOverride none
        Require all denied
    
    

    For me, if I comment out the line that says Require all denied I started having access to the directory in question. I don't recommend this.

    Instead in the directory directive I included Require local as below:

    
        AllowOverride All
        Allow from all
        Require local
    
    

    NOTE: I was still getting permission denied when I only had Allow from all. Adding Require local helped for me.

提交回复
热议问题