phpstudy

问题一:

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

解:

  在vhosts.conf中,你配置的开始如下:


    DocumentRoot "H:\practice"
    ServerName practice.com
    ServerAlias p.com
 

     Options FollowSymLinks ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
     Require all granted
 

去掉上面加粗的一行,改为如下:


    DocumentRoot "H:\practice"
    ServerName practice.com
    ServerAlias p.com
 
      AllowOverride All
      Order allow,deny
      Allow from all
     Require all granted
 

重启phpstudy,就可以看到目录了,如下:

phpstudy_第1张图片

你可能感兴趣的:(phpstudy)