Posts by Nuxwin

    Good morning,


    For those people, which have a license for the i-MSCP PhpSwitcher plugin, and which want have access to the git repository for testing purpose, you need give us your GitHub account name through private messaging. Once done, we'll add you as colaborator, making you able to clone the repository.


    Bear in mind that because this repository is private, you MUST not make it publicly available. Please, don't fork it.


    For testing, you should process as follows:

    Code
    1. cd /var/www/imscp/gui/plugins
    2. rm -Rf PhpSwitcher
    3. git clone --depth=1 https://github.com/nuxwin/phpswitcher-self-compilation.git PhpSwitcher
    4. rm -r ./PhpSwitcher/.git
    5. perl /var/www/imscp/engine/setup/set-gui-permissions.pl
    6. service imscp_panel restart

    Then, once done, you MUST not forget to trigger a plugin list update through the plugin management interface.


    WARNING: You need bear in mind that version from the git repository can have some bugs yet... Please report any issue at https://github.com/nuxwin/phps…r-self-compilation/issues


    Thank you.

    And yes. The clamav plugin is installed and activated in i-mscp. It seems to work without any problems now. But I can confirm, that the clamav package update changed something in the config, it was displayed in the apt upgrade process. I think it was the milter configuration file.


    I can see that your clamav-milter.conf is different from mine.

    Yes, the plugin is working as expected. There is only the problem of the clamd socket file that is very long to be created as explained in my previous messages... That's a big problem because I don't know how we can delay the start of the clamav-milter service till that the clamd socket file is effectively created...


    You milter conffile seem to be same as me ;)

    fulltilt   freedom


    See below to know why the socket file is very long to be created:


    Code
    1. root@phpswitcher:~# service clamav-daemon stop


    Code
    1. root@phpswitcher:~# /usr/sbin/clamd --foreground=false --debug
    2. root@phpswitcher:~# pkill -KILL -f /usr/sbin/clamd


    A the same time on another console:


    Basically put, loading signatures is very long process (~40 seconds)... And the socket file will not be created before...

    freedom


    Your /etc/clamav/clamav-milter.conf configuration file is totally wrong... It look like the content of the /etc/clamav/clamd.conf configuration file... Did you do a wrong copy past or? Content, when the i-MSCP ClamAV plugin is activated, should be:

    fulltilt   freedom


    I've juste tested the behavior under Debian Stretch. The problem seem to be related to the /run/clamav/clamd.ctl socket file which make very long time to be created and so, when the clamav-milter service is being started, the /run/clamav/clamd.ctl socket file is not found, leading to the "WARNING: No clamd server appears to be available" message, and possibly other error messages.


    Basically put:



    Code
    1. root@phpswitcher:~# ls /run/clamav
    2. clamav-milter.pid

    As you can see here, the clamav-daemon is running but the /run/clamav/clamd.ctl socket file is not created yet....


    However, after few seconds:


    Code
    1. root@phpswitcher:~# ls /run/clamav
    2. clamav-milter.pid clamd.ctl


    Problem is that the clamav-milter service, is started just after the clamav-damon service but at this time, the /run/clamav/clamd.ctl socket file has not been created yet...


    Well, this has nothing to do with the plugin in fact... I need investigate further to know why the /run/clamav/clamd.ctl socket file creation is so long...

    What is the correct way to handle this, until the new clamav plugin, which will be not free anymore, will be released? Should we stay in this situation until then, disable the clamav plugin, or is there any fix for the moment? Unfortunately the clamav readme from the i-mscp plugin is removed, therefore I wasn't able to check and fix the config change myself.

    The README.md file is part of the plugin so you should have access to it under the /var/www/imscp/gui/plugins/ClamAV directory.


    After restarting the clamav-daemon, and the clamav-milter filter, what's the content of the /run/clamav directory, and the /var/spool/postfix/clamav directory ?


    Also please, post the content of your /etc/clamav/clamd.conf file, and the content of your /etc/clamav/clamav-milter.conf file. I'm pretty sure that your milter configuration file is wrong but...


    BTW: Don't forget to surround your copy-past with bbcode tags.

    I can see right now that I use the plugin YubiKey Auth it will not be displayed in the new styles unfortunately you could still add it.

    The theme is not ready for production use as there are still many things to do. aaroniker make it on his free time so just be patient. Regarding the problem with OTP, that's expected because the html tags are not identical and thus, the plugin cannot find/replace the appropriate tag to insert its own html snippet. This problem will be addressed later, that is, when the theme will be ready for integration in i-MSCP.


    And could you also change 2017 to 2019 or there are problems with Nuxwin .

    There is no problem with me at all. Again, that theme is still a work in progress.

    You're welcome. Please mark the thread as solved ;)