开发者

getting error in starting apache2 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
开发者_C百科

This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.

Closed 7 years ago.

Improve this question

hi all I am new to apache2 and i have installed apache2 on my ubuntu machine and edited apache2.conf file wrongly. and when i am trying to start it I am getting an error message like this:

Starting web server apache2
apache2: Syntax error on line 236 of /etc/apache2/apache2.conf:
    Syntax error on line 2 of /etc/apache2/sites-enabled/mysiteM-D:
    </VirtualHost without matching <VirtualHost section
[fail]**

what should i do?


Did you keep a copy of the files before you began editing them? If not, then make a note to always keep a copy. You should be able to go and download clean copies. So one approach is to go bakc to clean install.

Another approach is to study the error message. Something is wrong on line 236. Is that a line you changed? Compare it with examples you find on net, study the documentation figure to figure out jow to fix it.

It looks like actually that its your entry in sites-enabled directory that's the problem. Is that the file referenced in line 236? Compare this site file with other site files, try and spot the problem.


You are actually safe because in the original folder there is a copy so just open it and copy all and paste in the one you messed up which is in the conf folder!

If you still have this problem can you please paste line 235 here and I can figure it out.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜