想了解免费建站的朋友,查看《免费建站教程》

Windows不能在本地计算机启动Apache2

2020-03-31 1289 运营
经过排查,发现80端口没被占用,安装路径中也没有含有中文,V9运行库也正常,基本的条件都满足,事件是突然性的,半夜3点收到短信说网站无法访问!
没办法,不想起床,于是手机上重启了服务器,但过了一段时间还是有短信说网站无法访问。我就纳闷了。

于是,找问题,看phpStudy\Apache\logs\error.log日记,拉到最底部发现问题:
[Tue Mar 05 03:54:23.294355 2019] [mpm_winnt:notice] [pid 1112:tid 1524] AH00424: Parent: Received restart signal -- Restarting the server.
AH00526: Syntax error on line 223 of C:/phpStudy2016/Apache/conf/httpd.conf:
DocumentRoot 'C:/phpStudy2016/WWW' is not a directory, or is not readable
[Tue Mar 05 03:54:27.388208 2019] [mpm_winnt:notice] [pid 2244:tid 1728] AH00364: Child: All worker threads have exited.

这才想起是WWW目录不存在,因为我前段时间扫描说WWW文件夹里有木马执行,就把WWW的文件夹改了,于是新建一个WWW文件夹,成功启动。


版权保护: 转载请保留链接: https://cgy.isi8.cn/yunying/148.html