# Apache2/Ubuntu 16.04

**URL:** https://community.letsencrypt.org/t/apache2-ubuntu-16-04/28222
**Category:** Help
**Created:** [February 19, 2017, 8:07pm UTC](https://community.letsencrypt.org/t/apache2-ubuntu-16-04/28222 "2017-02-19T20:07:28Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![fontosaurus](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/fontosaurus/32/11375_2.png) [@fontosaurus](https://community.letsencrypt.org/u/fontosaurus)
#### Post date: [February 19, 2017, 8:07pm UTC](https://community.letsencrypt.org/t/apache2-ubuntu-16-04/28222/1 "2017-02-19T20:07:28Z")

</div>

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

My domain is: [danbailey.net](http://danbailey.net)

I ran this command: sudo letsencrypt run -d [danbailey.net](http://danbailey.net) -d [www.danbailey.net](http://www.danbailey.net) -d [consulting.danbailey.net](http://consulting.danbailey.net) --apache -vvv

It produced this output: The apache plugin is not working; there may be problems with your existing configuration.  
The error was: PluginError((‘There has been an error in parsing the file (%s): %s’, u’/etc/apache2/sites-available/default’, u’Syntax error’),)

My operating system is (include version): Ubuntu 16.04

My web server is (include version): Apache/2.4.18 (Ubuntu)

My hosting provider, if applicable, is: Digital Ocean

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.

Here’s the contents of my .log file:

2017-02-19 19:36:14,702:DEBUG:letsencrypt.cli:letsencrypt version: 0.4.1  
2017-02-19 19:36:14,709:DEBUG:letsencrypt.cli:Arguments: [’-d’, ‘[danbailey.net](http://danbailey.net)’, ‘-d’, ‘[www.danbailey.net](http://www.danbailey.net)’, ‘-d’, ‘[consulting.danbailey.net](http://consulting.danbailey.net)’, ‘–apache’, ‘-vvv’]  
2017-02-19 19:36:14,723:DEBUG:letsencrypt.cli:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#webroot,PluginEntryPoint#null,PluginEntryPoint#manual,PluginEntryPoint#standalone)  
2017-02-19 19:36:14,737:DEBUG:letsencrypt.cli:Requested authenticator apache and installer apache  
2017-02-19 19:36:15,066:DEBUG:letsencrypt.plugins.disco:Other error:(PluginEntryPoint#apache): (‘There has been an error in parsing the file (%s): %s’, u’/etc/apache2/sites-available/default’, u’Syntax error’)  
Traceback (most recent call last):  
File “/usr/lib/python2.7/dist-packages/letsencrypt/plugins/disco.py”, line 103, in prepare  
self.\_initialized.prepare()  
File “/usr/lib/python2.7/dist-packages/letsencrypt\_apache/configurator.py”, line 174, in prepare  
self.check\_parsing\_errors(“httpd.aug”)  
File “/usr/lib/python2.7/dist-packages/letsencrypt\_apache/augeas\_configurator.py”, line 68, in check\_parsing\_errors  
raise errors.PluginError(msg)  
PluginError: (‘There has been an error in parsing the file (%s): %s’, u’/etc/apache2/sites-available/default’, u’Syntax error’)  
2017-02-19 19:36:15,076:DEBUG:letsencrypt.display.ops:No candidate plugin  
2017-02-19 19:36:15,084:DEBUG:letsencrypt.cli:Selected authenticator None and installer None

---

<div class="post-metadata">

### Author: ![jmorahan](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/jmorahan/32/1873_2.png) [@jmorahan](https://community.letsencrypt.org/u/jmorahan)
#### Post date: [February 19, 2017, 8:28pm UTC](https://community.letsencrypt.org/t/apache2-ubuntu-16-04/28222/2 "2017-02-19T20:28:33Z")

</div>

Could you post the contents of  
`/etc/apache2/sites-available/default` please?

---

<div class="post-metadata">

### Author: ![fontosaurus](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/fontosaurus/32/11375_2.png) [@fontosaurus](https://community.letsencrypt.org/u/fontosaurus)
#### Post date: [February 19, 2017, 10:12pm UTC](https://community.letsencrypt.org/t/apache2-ubuntu-16-04/28222/3 "2017-02-19T22:12:54Z")

</div>

Hah, that was it.

```
 <Directory /var/www/dbn/public_html>>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
 </Directory>

```

Took out the extraneous “\>” in the first line, restarted apache and everything was fine.

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)
#### Post date: [March 21, 2017, 10:13pm UTC](https://community.letsencrypt.org/t/apache2-ubuntu-16-04/28222/4 "2017-03-21T22:13:15Z")

</div>

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