Heim  >  Artikel  >  Backend-Entwicklung  >  php下document must be directory的问题

php下document must be directory的问题

WBOY
WBOYOriginal
2016-06-06 20:32:271249Durchsuche

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没有指到文件夹上面吧

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn