Home  >  Article  >  Backend Development  >  php下document must be directory的问题

php下document must be directory的问题

WBOY
WBOYOriginal
2016-06-06 20:32:271283browse

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这个命令啊

回复内容:

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这个命令啊

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

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn