chattr not working and a php warning

Discussion in 'Installation/Configuration' started by Steffan, Oct 30, 2025.

  1. Steffan

    Steffan Member

    hello,

    i added a new webserver to my multi server setup.
    Debian Bookworm php 8.2
    I see these errors in my logs
    Code:
    PHP Warning:  Trying to access array offset on value of type null in /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php on line 538
    chattr: Operation not permitted while setting flags on /var/www/clients/client170/web1967
    first is just a warning. But any idees why chattr is not working
    Main server is running on openvz container.
    The new one in proxmox CT
     
  2. variable99

    variable99 Active Member HowtoForge Supporter

    openvz is para-virtualization. Not full such as KVM. Do not deploy ISPC on OpenVZ, just general advice. Regarding your problem - try manually set chattr:
    And then unset:
    Any errors?
     
  3. Steffan

    Steffan Member

    The old one is openvz...
    The new webserver is proxmox...
    Im working on a rollover...

    on the proxmox CT it goes wrong

    chattr +i /var/www/clients/client170/web1967
    chattr: Operation not permitted while setting flags on /var/www/clients/client170/web1967
     
  4. Steffan

    Steffan Member

    strange if i look:

    Code:
     lsattr /var/www/clients/client170/web1967
    --------------e------- /var/www/clients/client170/web1967/backup
    --------------e------- /var/www/clients/client170/web1967/private
    --------------e------- /var/www/clients/client170/web1967/webdav
    --------------e------- /var/www/clients/client170/web1967/web
    --------------e------- /var/www/clients/client170/web1967/cgi-bin
    --------------e------- /var/www/clients/client170/web1967/tmp
    --------------e------- /var/www/clients/client170/web1967/ssl
    --------------e------- /var/www/clients/client170/web1967/log
    
    and
    Code:
    lsattr /var/www/clients/client170/
    --------------e------- /var/www/clients/client170/web1977
    lsattr: Operation not supported While reading flags on /var/www/clients/client170/web8.xxx.com
    --------------e------- /var/www/clients/client170/web1967
    lsattr: Operation not supported While reading flags on /var/www/clients/client170/xxxx.nl
    
    so it looks like just a symlink thing
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Do you use LXC or KVM in Proxmox?
     
  6. Steffan

    Steffan Member

  7. till

    till Super Moderator Staff Member ISPConfig Developer

    LXC is a container and not a VM, so it's probably caused by that.
     
  8. Steffan

    Steffan Member

    Hm.
    Never seen it before. Always worked with containers. of a costumer deleted the directory with ftp is that a problem... Besides that his website will be offline? I know ispconfig mounts the log directory
     
  9. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    You mean in your old OpenVZ right? and not your new Proxmox LXC? because both are two different softwares, with different approaches, so it will definitely not working exactly the same in the latter like in the former.

    May be you already know? that it is best not to run ISPConfig in LXC as it is unsupported and won't work without much tiring issues, one after another, mainly since an LXC doesn't have a kernel on its own and some of ISPConfig commands rely on it.

    That said, so unless you have a good relay and wrapper, that can securely and safely pass command from the child ISPConfig server in an LXC to its host mother Proxmox, via some scripts and plugins, for both the child and mother, stay with a VM as it is proven, prudent, safer, faster and no headache.
     
    Last edited: Nov 1, 2025

Share This Page