Home >php教程 >php手册 >为什么出现“APACHE.EXE:cannotdetermine

为什么出现“APACHE.EXE:cannotdetermine

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 09:54:241030browse

由于Windows版本的Apache默认情况下不指定ServerName,所以运行时会出错。
解决的办法是修改Apache安装目录下的conf目录下的httpd.conf:
- 搜索ServerName
- 去掉前面的#号
- 把ServerName后面的值换成你自己的设置,如localhost之类的
- 保存,重新启动Apache

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