Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion Debian/Ubuntu
  • Search

Apache2 Error

Debian/Ubuntu related topics
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
feliphe
Posts: 4
Joined: Tue Jul 19, 2016 4:01 pm

Apache2 Error
  • Quote

Post by feliphe » Wed Nov 30, 2016 6:34 pm

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!
Top

Stesh
Posts: 348
Joined: Mon Nov 09, 2015 5:52 pm

Os: CentOS 6x
Web: nginx + php-fpm
Re: Apache2 Error
  • Quote

Post by Stesh » Wed Nov 30, 2016 6:51 pm

See /home/admin/conf/web/sapache2.conf
Top

feliphe
Posts: 4
Joined: Tue Jul 19, 2016 4:01 pm

Re: Apache2 Error
  • Quote

Post by feliphe » Wed Nov 30, 2016 7:07 pm

Thanks Stesh!
Last edited by feliphe on Thu Dec 01, 2016 4:23 pm, edited 1 time in total.
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: Apache2 Error
  • Quote

Post by skamasle » Wed Nov 30, 2016 9:59 pm

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.
Top

feliphe
Posts: 4
Joined: Tue Jul 19, 2016 4:01 pm

Re: Apache2 Error
  • Quote

Post by feliphe » Thu Dec 01, 2016 4:21 pm

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
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “Debian/Ubuntu”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password