Ubuntu apache无法重新启动

Ubuntu apache无法重新启动,ubuntu,apache2,restart,Ubuntu,Apache2,Restart,当我在重启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>

当我在重启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.
apache2ctl配置测试
apache2:etc/apache2/apache2.conf的第236行出现语法错误/etc/apache2/conf.d/index.html的第3行出现语法错误:应为>但看到
操作“configtest”失败。
第236行显示:

Include conf.d/

The line 3 of index.html is:
<\/p>
Include conf.d/
index.html的第3行是:
注意:编辑器请帮助处理上述html标记。 在浏览器127.0.0.1上进行测试时,索引页面显示得很好。我找了很多,但似乎什么也没找到


有什么建议吗?

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

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

在apache2.conf中HTML代码在做什么?这个错误与“apache2:Syntax error on line 236 of/etc/apache2/apache2.conf”有关。你能粘贴index.html的内容吗?html代码在apache2.conf里面做什么?此错误与“apache2:Syntax error on line 236 of/etc/apache2/apache2.conf”有关。您可以粘贴index.html的内容吗?删除索引页可以工作,谢谢!现在测试显示:'apache2:无法可靠地确定服务器的完全限定域名,使用127.0.1.1作为服务器名语法确定'我需要在某个地方更改什么吗?更常见的是:请参见此处此链接!对我有效的是关于更改/etc/apache2/httpd.conf的第二个建议。这也帮助我解决了我的php mysql连接问题,我打算在这之后问这个问题!谢谢大家!!这个地方是天堂:)删除索引页的工作,谢谢!现在测试显示:'apache2:无法可靠地确定服务器的完全限定域名,使用127.0.1.1作为服务器名语法确定'我需要在某个地方更改什么吗?更常见的是:请参见此处此链接!对我有效的是关于更改/etc/apache2/httpd.conf的第二个建议。这也帮助我解决了我的php mysql连接问题,我打算在这之后问这个问题!谢谢大家!!这个地方是天堂:)