ZhaoMiing
V2EX  ›  macOS

Yosemite 本地服务器环境搭建权限问题

  •  
  •   ZhaoMiing · Oct 23, 2014 · 4381 views
    This topic created in 4225 days ago, the information mentioned may be changed or developed.
    各位早,我使用Yosemite自带的apache作为本地服务器,根目录是Library/WebServer/Documents,然后localhost是可以访问的,但是为什么访问下面的任何子目录都会提示「Forbidden
    You don't have permission to access /anyfolder/ on this server.」呢?求解:(
    4 replies    2014-10-24 09:36:39 +08:00
    popbones
        1
    popbones  
       Oct 23, 2014   ❤️ 1
    那你的anyfolder的权限是什么样子的呢?
    Yuguo
        2
    Yuguo  
       Oct 23, 2014   ❤️ 1
    1. 检查目录权限是否为766
    2. 访问目录下的某个文件,比如index.html看是否可以访问,如果可以,再试试index.php,我之前遇到过没有开启php模块的情况
    bearcat001
        3
    bearcat001  
       Oct 23, 2014 via iPhone   ❤️ 1
    把documents目录改成755权限,我的dropbox目录是这个问题
    ZhaoMiing
        4
    ZhaoMiing  
    OP
       Oct 24, 2014
    @popbones
    @Yuguo
    @bearcat001
    感谢各位,确实是文件夹权限的问题。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1052 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 22:40 · PVG 06:40 · LAX 15:40 · JFK 18:40
    ♥ Do have faith in what you're doing.