Reputation: 35
I am trying to figure out a php-mysql connection problem on ubuntu when I encounter a problem with restarting apache. I got the following error when running:
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.
The line 236 shows:
Include conf.d/
The line 3 of index.html is:
<\/p>
NOTE: editor please help with the above html tags. When testing on the browser: 127.0.0.1, the index page shows just fine. I've searched a lot but nothing seems to work.
Any suggestions please ?
Upvotes: 1
Views: 869
Reputation:
The index.html
file doesn't belong in /etc/apache2/conf.d/
. Please move it to an appropriate place (perhaps your DocumentRoot).
Upvotes: 1