Page 1 of 1

Apache2 Error

Posted: Wed Nov 30, 2016 6:34 pm
by feliphe
Did I do something wrong?

How do I solve this?

Apache2 offline, does not start, does not restart
root@myserver:~# service apache2 start
* Starting web server apache2 *
* The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 83 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/conf.d/vesta.conf: Syntax error on line 35 of /home/admin/conf/web/sapache2.conf: </VirtualHost> without matching <VirtualHost> section
Action 'configtest' failed.
The Apache error log may have more information.

ubuntu-14.04-x86_64
V.:0.9.8 R17


Print:
Image

Thanks!

Re: Apache2 Error

Posted: Wed Nov 30, 2016 6:51 pm
by Stesh
See /home/admin/conf/web/sapache2.conf

Re: Apache2 Error

Posted: Wed Nov 30, 2016 7:07 pm
by feliphe
Thanks Stesh!

Re: Apache2 Error

Posted: Wed Nov 30, 2016 9:59 pm
by skamasle
You need see this 3 files

/etc/apache2/apache2.conf:
/etc/apache2/conf.d/vesta.conf:
/home/admin/conf/web/sapache2.conf:

And check why you have and </VirtualHost>statement whitout a <virtualhost>

Maybe bad edited file.

I thing problem is from /home/admin/conf/web/sapache2.conf

You may can solve it whit v-rebuild-web-domains admin

The orther 2 files should not have a virtualhost directive.

Re: Apache2 Error

Posted: Thu Dec 01, 2016 4:21 pm
by feliphe
Thanks for helping! skamasle and Stesh
Stesh wrote:See /home/admin/conf/web/sapache2.conf
OoOps! I see the correct location: "/home/admin/conf/web/sapache2.conf"

I deleted the contents of the file "sapache2.conf", returned it in the vesta panel, and started apache2.

Working now! Thanks!

Anyway, I backed up the file. Can I get an error while leaving the document blank? :O