Hello, I am working on the qemu-web-desktop package.
But When install this package I get this error message.
This is an installation wheren apache2 was nor present.
so it install also apache2.
[...]
Paramétrage de qemu-web-desktop (26.02.08+ds1-1) ...
apache2_invoke: Enable configuration qemu-web-desktop
apache2_reload: Your configuration is broken. Not reloading Apache 2
apache2_reload: [Sun Feb 08 12:18:39.461484 2026] [so:warn] [pid 278116:tid
278116] AH01574: module perl_module is already loaded, skipping
apache2_reload: apache2: Syntax error on line 222 of /etc/apache2/apache2.conf:
Syntax error on line 4 of /etc/apache2/conf-enabled/qemu-web-desktop.conf:
Cannot load modules/mod_cgi.so into server: /etc/apache2/modules/mod_cgi.so:
cannot open shared object file: No such file or directory
qwdctl: refresh -> /var/lib/qemu-web-desktop/machines.html
qwdctl: Reading /etc/qemu-web-desktop/machines.conf
qwdctl: WARNING: No VM is configured. Use 'qwdctl enable VM|FILE|URL' to add
entries.
apache2_invoke: Enable module cgi
apache2_invoke: Enable module include
apache2_switch_mpm itk: No action required
Paramétrage de libguestfs-hfsplus:amd64 (1:1.56.2-5) ...
Paramétrage de guestfish (1:1.56.2-5) ...
Paramétrage de guestmount (1:1.56.2-5) ...
Paramétrage de libguestfs-tools (1:1.56.2-5) ...
Paramétrage de virt-p2v (1.42.4-1) ...
Traitement des actions différées (« triggers ») pour dbus (1.16.2-3) ...
Traitement des actions différées (« triggers ») pour libc-bin (2.42-12) ...
Traitement des actions différées (« triggers ») pour man-db
(2.13.1-1) ...
Here the apache2 installation
Paramétrage de apache2 (2.4.66-6) ...
Enabling module mpm_event.
Enabling module authz_core.
Enabling module authz_host.
Enabling module authn_core.
Enabling module auth_basic.
Enabling module access_compat.
Enabling module authn_file.
Enabling module authz_user.
Enabling module alias.
Enabling module dir.
Enabling module autoindex.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module filter.
Enabling module deflate.
Enabling module status.
Enabling module reqtimeout.
Enabling conf charset.
Enabling conf localized-error-pages.
Enabling conf other-vhosts-access-log.
Enabling conf security.
Enabling conf serve-cgi-bin.
Enabling site 000-default.
info: Switch to mpm prefork for package libapache2-mpm-itk
Module mpm_event disabled.
Enabling module mpm_prefork.
info: Executing deferred 'a2enmod mpm_itk' for package libapache2-mpm-itk
Enabling module mpm_itk.
Created symlink '/etc/systemd/system/multi-user.target.wants/apache2.service' →
'/usr/lib/systemd/system/apache2.service'.
Created symlink
'/etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service'
→ '/usr/lib/systemd/system/apache-htcacheclean.service'.
My package use two modules
perl_mod and cgi_mod in its site configuration
# 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>
My question Is: What should I do in order to avoid the apache2 mod error
?
thanks for your help
Fred