← Back to team overview

enterprise-support team mailing list archive

[Bug 2012154] [NEW] threaded MPM on focal selects cgid instead of cgi but doesn't work

 

Public bug reported:

apache2 2.4.41-4ubuntu3.14 on focal.  With mpm_worker selected, 'a2enmod
cgi' redirects to cgid:

# a2enmod cgi
Your MPM seems to be threaded. Selecting cgid instead of cgi.
Enabling module cgid.
To activate the new configuration, you need to run:
  systemctl restart apache2
#

However, after restarting apache2, attempting to access a CGI returns a
503.

access log:

10.131.50.215 - - [18/Mar/2023:20:34:54 +0000] "GET /madison.cgi
HTTP/1.1" 503 568 "-" "Wget/1.20.3 (linux-gnu)"


error log:

[Sat Mar 18 20:34:54.428705 2023] [cgid:error] [pid 3571669:tid
140058430510848] (13)Permission denied: [client 10.131.50.215:34668]
AH01257: unable to connect to cgi daemon after multiple tries:
/srv/ubuntu-archive/madison.cgi

/run/apache2/ contains:

srwx------ 1 www-data root 0 Mar 18 21:45 cgisock.3576630

Permissions on /run/apache2 were for some reason 0600 root root.
Changing this to 0700 www-data root doesn't change anything.

# fuser -v /run/apache2/cgisock.3576630 
                     USER        PID ACCESS COMMAND
/run/apache2/cgisock.3576630:
                     www-data  3576631 F.... apache2
#

Not sure what's wrong here, but I do think that 'a2enmod cgi' if it's
going to redirect to cgid should somehow manage to make cgid work.

** Affects: apache2 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to apache2 in Ubuntu.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/2012154

Title:
  threaded MPM on focal selects cgid instead of cgi but doesn't work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/2012154/+subscriptions



Follow ups