1

当我遇到重新启动 apache 的问题时,我试图找出 ubuntu 上的 php-mysql 连接问题。运行时出现以下错误:

apache2ctl configtest

apache2: Syntax error on line 236 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/conf.d/index.html: Expected <\/p>This> but saw <\/p> 
Action 'configtest' failed.

第 236 行显示:

Include conf.d/

The line 3 of index.html is:
<\/p>

注意:编辑器请帮助处理上述 html 标签。 在浏览器上测试时:127.0.0.1,索引页面显示正常。我搜索了很多,但似乎没有任何效果。

请问有什么建议吗?

4

1 回答 1

1

index.html文件不属于/etc/apache2/conf.d/. 请将其移至适当的位置(可能是您的 DocumentRoot)。

于 2013-01-31T07:21:18.697 回答