puppetlabs / puppetlabs/puppetlabs-apache
fcgid module removes distro setup
Nobody has claimed this yet.
- Dominant language
- Puppet
- Stars
- 356
- Forks
- 1.1k
- Avg merge
- 3m
- Merged PRs (30d)
- 1
Description
Describe the Bug
by default, apache::mod::fcgid will install an essentially empty fcgid.conf.
Expected Behavior
The configuration required by the distro should be kept intact. Specifically, AddHandler
In EL9 the distro configuration looks like this:
# This is the Apache server configuration file for providing FastCGI support
# through mod_fcgid
#
# Documentation is available at
# http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
# Use FastCGI to process .fcg .fcgi & .fpl scripts
AddHandler fcgid-script fcg fcgi fpl
# Sane place to put sockets and shared memory file
FcgidIPCDir /run/mod_fcgid
FcgidProcessTableFile /run/mod_fcgid/fcgid_shm
The last two directives are not essential, they just move these things out of Apache's default log directory.
In Ubuntu 22.04 it looks like this:
<IfModule mod_fcgid.c>
FcgidConnectTimeout 20
<IfModule mod_mime.c>
AddHandler fcgid-script .fcgi
</IfModule>
</IfModule>
Again the timeout is not essential for operation, but AddHandler is.
Steps to Reproduce
include apache::mod::fcgid- see how
/etc/apache2/mods-available/fcgid.conf(Debian flavour) loses all directives.
Environment
- Version 11.1.0
- Platform Debian, Ubuntu, EL
Additional Context
I don't think it is required to keep the configuration exactly the same, but it is unexpected that using Puppet to manage the module effectively disabled the module. I came across this while installing request-tracker5.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the apache::mod::fcgid entry point and inspect how it manages /etc/apache2/mods-available/fcgid.conf. Compare the generated file with the Debian, Ubuntu, and EL examples in the issue, especially the AddHandler directive. Done means including the module no longer removes the distro configuration required for FastCGI support.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- apache
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100