Heim  >  Fragen und Antworten  >  Hauptteil

php下document must be directory的问题

mac下用xampp配置环境,更改了目录之后重启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 ,但是mac好像没有chcon这个命令啊

PHP中文网PHP中文网2749 Tage vor292

Antworte allen(2)Ich werde antworten

  • 天蓬老师

    天蓬老师2017-04-10 15:46:39

    Syntax error on line 229 of /Applications/XAMPP/xamppfiles/etc/httpd.conf:
    你看错误描述就知道了,DocumentRoot配置的不对,行数也有了 你去看看这里的配置
    要不你把这里的配置贴出来看看。。。

    Antwort
    0
  • 高洛峰

    高洛峰2017-04-10 15:46:39

    配置虚拟主机的时候 DocumentRoot没有指到文件夹上面吧

    Antwort
    0
  • StornierenAntwort