Apache Failure "Action 'configtest' failed"


Please fill out the fields below so we can help you better.

My domain is: eqcp.de / hoerth.eu

I ran this command: $ certbot --apache

It produced this output: Error while running apache2ctl configtest.
Action ‘configtest’ failed.
The Apache error log may have more information.
apache2: Syntax error on line 225 of /etc/apache2/apache2.conf:
Syntax error on line 34 of
/etc/apache2/sites-enabled/200-eqcp-le-ssl.conf: Expected
</Virtual Host> but saw < / VirtualHost >< / IfModule > *had to ad spaces that you can see the last words

My operating system is (include version): Debian GNU/Linux 8.7

My web server is (include version): Apache/2.4.10 (Debian)

My hosting provider, if applicable, is: Hetzner

I can login to a root shell on my machine (yes or no, or I don’t know): Yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): No


This is maybe due to a missing newline at the end of each config file. After adding a newline to your configs, you should be fine.


@bmw, it doesn’t seem like the parser ought be vulnerable to this problem. Could this be reported upstream to Augeas or something?


I was under the impression this bug was fixed in letsencrypt 0.2.0 which was released in January of 2016. If someone can reproduce this with a newer version of letsencrypt/certbot, can you please post a full Apache configuration file causing the problem? Feel free to redact values as you feel necessary.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.