1、配置站点:打开phpStudy->其他选项菜单->站点域名管理

phpStudy配置站点 解决You don't have permission to access / on this server

2、配置站点:打开phpStudy->其他选项菜单->打开hosts

phpStudy配置站点 解决You don't have permission to access / on this server

3、在apache的配置文件vhosts.conf中,配置以下内容,删除Options FollowSymLinks ExecCGI

phpStudy配置站点 解决You don't have permission to access / on this server

4、打开phpStudy->其他选项菜单->phpStudy设置->允许目录列表打上勾

phpStudy配置站点 解决You don't have permission to access / on this server

5、找到Apache 下的httpd.conf 文件 打开,去掉171行前边的#

phpStudy配置站点 解决You don't have permission to access / on this server

6、重启phpStudy就可以访问啦:http://www.yopdo.com/模块/控制器/方法名;

备注:可能有同学问:为什么没有加入口文件,第三步我已经配置了index.php了,所以访问的时候就不用加入口文件了!


相关文章:

  • 2021-04-18
  • 2021-12-29
  • 2021-07-08
  • 2021-11-19
  • 2021-11-14
  • 2021-06-27
  • 2021-08-23
  • 2021-10-31
猜你喜欢
  • 2021-07-07
  • 2021-11-18
  • 2021-11-27
  • 2021-08-03
  • 2022-01-12
  • 2022-01-11
  • 2021-08-30
相关资源
相似解决方案