Apache Renewal Error

Hi,

I’m getting the following error while trying to renew my certificates. Kindly advise.

Cert is due for renewal, auto-renewing…
Could not choose appropriate plugin: 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 /etc/apache2/sites-enabled/000-default-le-ssl.conf on line 40: Syntax error’,)
Attempting to renew cert (instaease.com) from /etc/letsencrypt/renewal/instaease.com.conf produced an unexpected error: 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 /etc/apache2/sites-enabled/000-default-le-ssl.conf on line 40: Syntax error’,). Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/instaease.com/fullchain.pem (failure)


All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/instaease.com/fullchain.pem (failure)

Conf File Output

<VirtualHost *:443>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html
    <Directory /var/www/html/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    ServerName instaease.com
    Include /etc/letsencrypt/options-ssl-apache.conf
    ServerAlias www.instaease.com
    SSLCertificateFile /etc/letsencrypt/live/instaease.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/instaease.com/privkey.pem
    Include /etc/letsencrypt/options-ssl-apache.conf
    <IfModule mod_dir.c>
        DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm
    </IfModule>
</VirtualHost>

Hi @pramathesh,

I’m leaving in a few minutes but could you please show the output of this command?.

sed -n '40p' /etc/apache2/sites-enabled/000-default-le-ssl.conf

Cheers,
sahsanu

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