Bug#1023881: Buster: oldstable: apache2-bin: mod_cgid: No socket created for cgid at /var/run/apache2
Package: apache2-bin
Version: 2.4.38-3+deb10u8
Arch: amd64
Severity: important
Tags: buster
Dear maintainers,
the bug is about apache2-bin in oldstable. The cgid module of apache2 fails to install/open the necessary socket at /var/run/apache2/. On startup, the Apache httpd does not care about creating this socket. The error log of Apache httpd presents you things like:
[Sat Nov 12 01:55:17.617778 2022] [cgid:error] [pid 10238:tid 139931184354432] (1)Operation not permitted: AH01246: Couldn't change owner of unix domain socket /var/run/apache2/cgisock.10234
[Sat Nov 12 01:55:17.618520 2022] [mpm_event:notice] [pid 10234:tid 139931184354432] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Sat Nov 12 01:55:17.618539 2022] [core:notice] [pid 10234:tid 139931184354432] AH00094: Command line: '/usr/sbin/apache2'
[Sat Nov 12 01:55:17.618575 2022] [cgid:crit] [pid 10234:tid 139931184354432] AH01238: cgid daemon failed to initialize
[Sat Nov 12 01:56:19.322600 2022] [cgid:error] [pid 10240:tid 139931164157696] (2)No such file or directory: [client 127.0.0.1:35936] AH02833: ScriptSock /var/run/apache2/cgisock.10234 does not exist: /var/www/html/test.cgi
[Sat Nov 12 01:56:37.912856 2022] [cgid:error] [pid 10240:tid 139931155764992] (2)No such file or directory: [client 127.0.0.1:39024] AH02833: ScriptSock /var/run/apache2/cgisock.10234 does not exist: /var/www/html/test.cgi
Please test yourself with:
1) a2enmod cgid
2) A vhost config including:
DocumentRoot /var/www/html
<Directory "/var/www/html">
Options +ExecCGI
AddHandler cgi-script .cgi
3) Perl snippet in /var/www/html/test.cgi:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello, World.";
With apache2-bin in Debian Bullseye (stable) you do NOT encounter this failure and the Apache httpd cares properly about initializing the socket for the cgid module. Let me know, if this bug has been published in the right place and/or if you need any more details about it.
Regards
Sebastian
_______________________
Sebastian Kraus
IT-Abteilung
Institut für Chemie
Straße des 17. Juni 115
Technische Universität Berlin
Fakultät II
Institut für Chemie
Straße des 17. Juni 135
10623 Berlin
Reply to: