Wangxf
V2EX  ›  PHP

mac 系统下配置 php 环境 document must be directory 的问题

  •  
  •   Wangxf · Jul 1, 2015 · 3632 views
    This topic created in 3979 days ago, the information mentioned may be changed or developed.

    mac下用xampp配置环境,更改默认的htdocs为自定义的目录之后重启apache出现AH00526: Syntax error on line 229 of /Applications/XAMPP/xamppfiles/etc/httpd.conf:
    DocumentRoot must be a directory,网上搜了下selinux的问题,要解决的话chcon -t httpd_sys_content_t /xxx ,但是mac好像没有chcon这个命令啊,有小伙伴遇到过这样的问题吗?愁死了

    3 replies    2015-07-01 21:13:38 +08:00
    kevin8096
        1
    kevin8096  
       Jul 1, 2015
    找一下httpd.conf DocumentRoot 把这个指向你的项目目录
    Wangxf
        2
    Wangxf  
    OP
       Jul 1, 2015
    @kevin8096 指向了目录
    Tinko
        3
    Tinko  
       Jul 1, 2015
    我记得Mac自带的有Apache和php……
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2634 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 11:08 · PVG 19:08 · LAX 04:08 · JFK 07:08
    ♥ Do have faith in what you're doing.