数据分析师2017-10-01 00:30:58
Why does "APACHE.EXE: cannot determine local host name." appear? -PHP Chinese website Q&A-Why does "APACHE.EXE: cannot determine local host name." appear? -PHP Chinese website Q&A
Let’s take a look and learn.
怪我咯2017-02-23 14:01:12
由于Windows版本的Apache默认情况下不指定ServerName,所以运行时会出错。
解决的措施是修正Apache安装目录下的conf目录下的httpd.conf:
- 搜索ServerName
- 往掉前面的#号
- 把ServerName后面的值换成你自己的设置,如localhost之类的
- 保留,重新启动Apache