• howto customize apache service from another package

    From PICCA Frederic-Emmanuel@21:1/5 to All on Tue Apr 29 12:00:02 2025
    Hello, I have a package qemu-web-desktop which is served via apache2.

    This system run vm from a cgi script. We need to increaze the apache2 service mem limits, in order to run these VM (with GPU passthrough).

    What is the right way to customize the apache service from another package.

    now we are doing this locally.

    # configure apache to use unlimited memory for GPU access

    mkdir -p /etc/systemd/system/apache2.service.d

    FILE=/etc/systemd/system/apache2.service.d/override.conf
    echo "Saved Apache server memory limits configuration in ${FILE}"
    dd status=none of=${FILE} << EOF
    [Service]
    LimitMEMLOCK=infinity
    EOF

    systemctl daemon-reload
    systemctl restart apache2


    thanks for your help

    Frederic

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Yadd@21:1/5 to PICCA Frederic-Emmanuel on Tue Apr 29 12:00:01 2025
    On 4/29/25 11:38, PICCA Frederic-Emmanuel wrote:
    Hello, I have a package qemu-web-desktop which is served via apache2.

    This system run vm from a cgi script. We need to increaze the apache2 service mem limits, in order to run these VM (with GPU passthrough).

    What is the right way to customize the apache service from another package.

    now we are doing this locally.

    # configure apache to use unlimited memory for GPU access

    mkdir -p /etc/systemd/system/apache2.service.d

    FILE=/etc/systemd/system/apache2.service.d/override.conf
    echo "Saved Apache server memory limits configuration in ${FILE}"
    dd status=none of=${FILE} << EOF
    [Service]
    LimitMEMLOCK=infinity
    EOF

    systemctl daemon-reload
    systemctl restart apache2


    thanks for your help

    Frederic
    Hi,

    you can add a conf file into /etc/apache2/conf-available and insert in
    doc that to enable it, launch a2enconf <name>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco d'Itri@21:1/5 to PICCA Frederic-Emmanuel on Tue Apr 29 12:30:02 2025
    On Apr 29, PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> wrote:

    What is the right way to customize the apache service from another package. Use /lib/systemd/system/apache2.service.d/$YOURPACKAGE.conf.

    --
    ciao,
    Marco

    -----BEGIN PGP SIGNATURE-----

    iHUEABYKAB0WIQQnKUXNg20437dCfobLPsM64d7XgQUCaBCn/gAKCRDLPsM64d7X gcTyAP99ndfYNBRHM/fGaJ6+QZN3ntcsY7ShKLbg+KZ0RXu/kgEA65QyQuzvCa3R xxdskmsp+EkoETvsPPagXksUlqQIyws=
    =AxZM
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From PICCA Frederic-Emmanuel@21:1/5 to All on Tue Apr 29 12:30:02 2025
    I already have this in

    /etc/apache2/conf-available/qemu-web-desktop.conf

    # qwd cgi configuration for perl

    LoadModule perl_module modules/mod_perl.so
    LoadModule cgi_module modules/mod_cgi.so

    <Location /cgi-bin/qemu-web-desktop.pl>
    SetHandler perl-script
    PerlResponseHandler ModPerl::Registry
    PerlOptions +ParseHeaders
    AddHandler perl-script .pl
    AddHandler perl-script .cgi
    Options +ExecCGI
    <IfModule mpm_itk_module>
    AssignUserIDExpr _qemu-web-desktop
    AssignGroupIDExpr kvm
    </IfModule>
    </Location>

    Alias /qemu-web-desktop /usr/share/qemu-web-desktop/html/desktop
    <Directory /usr/share/qemu-web-desktop/html/desktop>
    Options +Includes
    AddOutputFilter INCLUDES .html
    </Directory>

    Is it possible to deal with memory limits from here ?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From PICCA Frederic-Emmanuel@21:1/5 to All on Tue Apr 29 14:40:01 2025
    What is the right way to customize the apache service from another package.
    Use /lib/systemd/system/apache2.service.d/$YOURPACKAGE.conf.

    thanks

    Fred

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)