LXC container (Proxmox) - i-MSCP bind mount

  • Hello: :D

    I'm using proxmox lxc to deploy a i-mscp vps, when I try to create a new site this message shows on the result:

    Servers::httpd::apache_php_fpm::mountLogsFolder: mount: /var/log/apache2/bla-bla.com is write-protected, mounting read-only mount: cannot mount /var/log/apache2/bla-bla.com read-only

    I want to disable the bind mount to avoid this, the logs on domain log directory are no priority for me.

    Thanks in advance

  • hi.

    I think it is an Apache problem like here:

    1. http://www.janoszen.com/2013/04/29/setting-up-apache-with-php-fpm/

    at the bottom.

    I have no solution at the Moment. Switch to kvm/qemu or install Proxmox 3.x

  • That problem is related to apparmor of the host system. See also here.

    On a testsystem I also have seen this error, but did not have time to investigate further.

  • @mrpink

    Thank for your feedbacks. You save my time. I'll do some tests tomorrow on LXC container that @ciscllc has gracefuly provided, and add a fix for AppArmor in i-MSCP if your thinking is confirmed. If so, I bet we could have the same problem with SELinux...


  • Ok so :

    If this is related to the host, I can do nothing on the i-MSCP side;)

    @ciscllc What about creating a small page about this on our wiki?


  • @ciscllc

    Is it working with the apparmor changes?

    Last year when I made a short test on Proxmox 4.0 and i-MSCP 1.3.x on a LXC container it was not working with the apparmor changes.