F:\>\Student\PHP教程集合\环境搭建\Wamp5\wamp\Apache2\bin\httpd.exe httpd.exe: Syntax error on line 42 of F:/Student/PHP\xe6\x95\x99\xe7\xa8\x8b\xe9 \x9b\x86\xe5\x90\x88/\xe7\x8e\xaf\xe5\xa2\x83\xe6\x90\xad\xe5\xbb\xba/Wamp5/wamp /Apache2/conf/httpd.conf: ServerRoot must be a valid directory 手动启动了 ,但是看不懂 ,= =!
不知道你想干什么? wamp的话直接双击图片就可以启动apache了。
检查你的httpd.conf 里面的ServerRoot 不是你机器上真实存在的一个目录 httpd.exe: Syntax error on line 42 of F:/Student/PHP\xe6\x95\x99\xe7\xa8\x8b\xe9 \x9b\x86\xe5\x90\x88/\xe7\x8e\xaf\xe5\xa2\x83\xe6\x90\xad\xe5\xbb\xba/Wamp5/wamp /Apache2/conf/httpd.conf: ServerRoot must be a valid directory这个的意思就是这个conf的42行有语法错误
httpd.exe: Syntax error on line 42 of F:/Student/PHP\xe6\x95\x99\xe7\xa8\x8b\xe9
\x9b\x86\xe5\x90\x88/\xe7\x8e\xaf\xe5\xa2\x83\xe6\x90\xad\xe5\xbb\xba/Wamp5/wamp
/Apache2/conf/httpd.conf: ServerRoot must be a valid directory
手动启动了 ,但是看不懂 ,= =!
里面的ServerRoot
不是你机器上真实存在的一个目录
httpd.exe: Syntax error on line 42 of F:/Student/PHP\xe6\x95\x99\xe7\xa8\x8b\xe9
\x9b\x86\xe5\x90\x88/\xe7\x8e\xaf\xe5\xa2\x83\xe6\x90\xad\xe5\xbb\xba/Wamp5/wamp
/Apache2/conf/httpd.conf: ServerRoot must be a valid directory这个的意思就是这个conf的42行有语法错误
\xe7\x8e\xaf\xe5\xa2\x83\xe6\x90\xad\xe5\xbb\xba 是 环境搭建 的uft-8内码而 window 系统 gbk 的