Bug: apache2 config test failed (ubuntu)


#1

Certificates where created but installation to apache2 failed on redefinition of FastCgiExternalServer: redefinition of previously defined class

In source codes is this:
> FastCgiExternalServer /var/www/www.example.com/php5.external -socket /var/run/php5-fpm-9001.sock -idle-timeout 86400

and probably your installation try to use copy this conf with same FastCgiExternServer definition! That’s not possilbe… that is redefinition of same socked and apache2 config fails, with this errors

lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x Apache Restart Failed! x
x * Restarting web server apache2 x
x …fail! x
x * The apache2 configtest failed. x
x Output of config test was: x
x AH00526: Syntax error on line 15 of x
x /etc/apache2/sites-enabled/www.example.com.conf: x
x FastCgiExternalServer: redefinition of previously defined class x
x “/var/www/www.example.com/php5.external” x
x Action ‘configtest’ failed. x
x The Apache error log may have more information. x
x x
x x
x x
x x
x x
x x
x x
x x
x x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x Apache Restart Failed! x
x * Restarting web server apache2 x
x …fail! x
x * The apache2 configtest failed. x
x Output of config test was: x
x AH00526: Syntax error on line 15 of x
x /etc/apache2/sites-enabled/www.example.com.conf: x
x FastCgiExternalServer: redefinition of previously defined class x
x “/var/www/www.example.com/php5.external” x
x Action ‘configtest’ failed. x
x The Apache error log may have more information. x
x Rolling back to previous server configuration… x
x x
x x
x x
x x
x x
x x
x x
x x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x Apache Restart Failed! x
x * Restarting web server apache2 x
x …fail! x
x * The apache2 configtest failed. x
x Output of config test was: x
x AH00526: Syntax error on line 15 of x
x /etc/apache2/sites-enabled/www.example.com.conf: x
x FastCgiExternalServer: redefinition of previously defined class x
x “/var/www/www.example.com/php5.external” x
x Action ‘configtest’ failed. x
x The Apache error log may have more information. x
x Rolling back to previous server configuration… x
x Rollback successful; your server has been restarted with your old x
x configuration x
x x
x x
x x
x x
x x
x x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

Error while restarting Apache:

  • Restarting web server apache2
    …fail!
  • The apache2 configtest failed.

Output of config test was:
AH00526: Syntax error on line 15 of /etc/apache2/sites-enabled/www.example.com.conf:
FastCgiExternalServer: redefinition of previously defined class "/var/www/www.example.com/php5.external"
Action ‘configtest’ failed.
The Apache error log may have more information.

IMPORTANT NOTES:

  • If you lose your account credentials, you can recover through
    e-mails sent to petr.svec@*******.
  • Congratulations! Your certificate and chain have been saved at
    /etc/letsencrypt/live/example.com/fullchain.pem. Your cert will expire
    on 2016-02-11. To obtain a new version of the certificate in the
    future, simply run Let’s Encrypt again.
  • Your account credentials have been saved in your Let’s Encrypt
    configuration directory at /etc/letsencrypt. You should make a
    secure backup of this folder now. This configuration directory will
    also contain certificates and private keys obtained by Let’s
    Encrypt so making regular backups of this folder is ideal.