Update from 1.3.16 to 1.4.1 - Apache problem

  • Code
    1. [ERROR] Servers::httpd::apache_php_fpm::start: Could not start the `apache2' service: iMSCP::Provider::Service::Sysvinit::_exec: Output of config test was:
    2. [Wed Mar 29 18:18:43.946527 2017] [alias:warn] [pid 27300:tid 139738595198848] AH00671: The Alias directive in /etc/apache2/imscp/before/vhost.conf at line 1 will probably never match because it overlaps an earlier Alias.
    3. AH00526: Syntax error on line 19 of /etc/apache2/sites-enabled/domain.ro_ssl.conf:
    4. FastCgiExternalServer: redefinition of previously defined class "/var/lib/apache2/fastcgi/php-fcgi-domain.ro"
    5. Action 'configtest' failed.
    6. The Apache error log may have more information. at /usr/local/src/imscp-1.4.1/engine/PerlLib/iMSCP/Service.pm line 185.
    7. [ERROR] autoinstaller::Functions::install: An error occurred while performing installation steps

    I just updated the i-mscp from 1.3.16 to 1.4.1 and the error above appeared.


    OS: Ubuntu 14.04 LTS
    Plugins: ClamAV, Let's Encrypt 2.0.5, Mailgraph, OpenDkim, Roundcube plugins, SpamAssassin.
    Php: 5.6


    I deactivated all plugins before running the update script.


    Line 1 in /etc/apache2/imscp/before/vhost.conf is,


    Alias /.well-known/acme-challenge/ /var/www/virtual/LetsEncrypt/.well-known/acme-challenge/


    Line 19 in /etc/apache2/sites-enabled/domain.ro_ssl.conf is,


    -pass-header Authorization



    Any suggestions?


    Thanks.

    Edited 2 times, last by Delta04 ().

  • @Delta04


    There are two bugs here:


    [Wed Mar 29 18:18:43.946527 2017] [alias:warn] [pid 27300:tid 139738595198848] AH00671: The Alias directive in /etc/apache2/imscp/before/vhost.conf at line 1 will probably never match because it overlaps an earlier Alias.

    This is due to the fact that you do not have updated the LetsEncrypt plugin. In a first time, you must remove the /etc/apache2/imscp/before/vhost.conf file. And once i-MSCP will be upgraded correctly, you'll have to update your LetsEncrypt plugin to version 3.0.0.


    AH00526: Syntax error on line 19 of /etc/apache2/sites-enabled/domain.ro_ssl.conf:
    FastCgiExternalServer: redefinition of previously defined class "/var/lib/apache2/fastcgi/php-fcgi-domain.ro"
    Action 'configtest' failed.
    The Apache error log may have more information. at /usr/local/src/imscp-1.4.1/engine/PerlLib/iMSCP/Service.pm line 185.

    This one is more important. This is a bug in i-MSCP core regarding FastCgiExternalServer class that is defined twice (in http and https vhostd for the same domain). For now, switch to fcgid by running the installer as follow:


    Code
    1. # perl imscp-autoinstall -dr httpd

    then, select the fcgid server implementation (temporary fix). That bug only affect Trusty for which fastcgi module is used in place of mod_proxy_fcgi when using PHP--FPM.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @Delta04


    A fix has been added in our development branch. See https://github.com/i-MSCP/imsc…afae2f8108f1ab2c52d9756d4
    This fix will be part of next i-MSCP version.



    Thank you for your report.
    Thread closed.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206