Update from 1.2.9 to 1.2.10 Error

  • Error while performing step:
    Settinf permissions


    Error was:
    Main::setupSetPermissions: Eooro while setting permissions: [error]
    iMSCP::Rights::_set: cmod: cannot access '/etc/courier/dhparams.pem' : No such file or directory


    Help ?


    Debian 7.9 wheezy

  • Hello @Taz-Mania


    Ok, here a solution to fix the problem quickly:


    In the i-mscp source directory (e.g. /usr/local/src/imscp-1.2.10), edit the following file engine/PerlLib/Servers/po/courier/installer.pm
    Then at line 242, change the following statement


    Perl
    1. setRights("$self->{'config'}->{'AUTHLIB_CONF_DIR'}/dhparams.pem", {user => $self->{'config'}->{'AUTHDAEMON_USER'},group => $main::imscpConfig{'ROOT_GROUP'},mode => '0600'});

    by

    Perl
    1. if(-f "$self->{'config'}->{'AUTHLIB_CONF_DIR'}/dhparams.pem") {
    2. setRights("$self->{'config'}->{'AUTHLIB_CONF_DIR'}/dhparams.pem", {
    3. user => $self->{'config'}->{'AUTHDAEMON_USER'},
    4. group => $main::imscpConfig{'ROOT_GROUP'},
    5. mode => '0600'
    6. });
    7. }

    Once done, rerun the installer.


    I'll release a new version soon with this fix. Jessie users shouldn't be impacted by this bug.

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

  • @Taz-Mania


    Just read my previous answer. I give you the solution. ;) Under wheezy, that file is not required. A test was missing.

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

  • Problem fixed in 1.2.11.


    Thread closed.

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