LetsEncrypt - Couldn't create directory

  • - IMSCP: 1.4.7
    - Distribution: Debian Stretch
    - Proftpd
    - PHP FCGID
    - MariaDB 10.1
    - Courier
    - Roundcube
    - Web2FTP
    - Plugins:
    PMA Captcha 1.1.1, RoundCubePlugins 2.0.1, SpamAssassin 2.0.1 , LetsEncrypt 3.3.0


    Problem:
    Error Message shown in ControlPanel when setup a new let's encrypt cert:
    Couldn't create directory for the /.well-known/acme-challenge/ URL path reacheability test.


    LetsEncrypt
    Version 3.3.0 (Build 2017070300)


    /var/log/letsencrypt/letsencrypt.log
    all OK, no error messages

  • Hello @fulltilt,


    is this an error on an older domain or a newly created one. The directory is only automatically created for new domains - for old ones you have to create it inside the htdocs directory by yourself (see errata file).


    Regards Jörg

    (Ubuntu 16.04, i-MSCP 1.5.1, php-Fpm, Plugins: ClamAV, CronJobs, InstantSSH, LetsEncrypt, Mailgraph, Monitorix, OpenDKIM, PhpSwitcher, PolicydSPF, Postscreen, RecaptchaPMA, RoundcubePlugins, ServerDefaultPage, SpamAssassin, YubiKeyAuth)

  • thanks, this happens with all domain names ...
    .well-known folder is is available but does not contain anything (empty).
    It seems to stop working since the last IMSCP update.

  • @fulltilt



    Hello @fulltilt,


    is this an error on an older domain or a newly created one. The directory is only automatically created for new domains - for old ones you have to create it inside the htdocs directory by yourself (see errata file).


    Regards Jörg

    This has nothing to do with the the .well-known folder of the domain ;) The LetsEncrypt plugin use it own .well-known/acme-challenge/ folder (for any challenge of any domain.


    @fulltilt


    Try perl /var/www/imscp/engine/setup/set-gui-permissions.pl -v

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