php下document must be directory的问题

WBOY
Release: 2016-06-06 20:32:27
Original
1281 people have browsed it

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

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template