Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 545650 - www-servers/apache-2.4: Please consider enabling mod_{authz_{core,host},socache_shmcb} by default (since used by shipped default config)
Summary: www-servers/apache-2.4: Please consider enabling mod_{authz_{core,host},socac...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-05 20:01 UTC by Sebastian Pipping
Modified: 2018-03-20 14:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Pipping gentoo-dev 2015-04-05 20:01:15 UTC
If compiled without mod_authz_core I get this error during startup:


# sudo /etc/init.d/apache2 start
 * Caching service dependencies...                                [ ok ]
 * /run/apache_ssl_mutex: creating directory
 * apache2 has detected an error in your setup:
AH00526: Syntax error on line 110 of /etc/apache2/modules.d/00_default_settings.conf:
Invalid command 'Require', perhaps misspelled or defined by a module not included in the server configuration
 * ERROR: apache2 failed to start


My point is that if the default config shipped uses Require maybe the module providing that directive should be enabled by default (thinking of a "+" prefix for the use flag).
Comment 1 Sebastian Pipping gentoo-dev 2015-04-05 20:07:52 UTC
Update: with mod_authz_core, I hit mod_authz_host from "Require local" next:


# sudo /etc/init.d/apache2 start
 * Caching service dependencies ...                                                                                                                                                                              [ ok ]
 * apache2 has detected an error in your setup:
AH00526: Syntax error on line 6 of /etc/apache2/modules.d/00_mod_info.conf:
Unknown Authz provider: local
 * ERROR: apache2 failed to start


Still all shipped default config.
Comment 2 Sebastian Pipping gentoo-dev 2015-04-05 20:15:44 UTC
Still default config shipped:


# sudo /etc/init.d/apache2 start
Password: 
 * Caching service dependencies ...                                                                                                                                                                              [ ok ]
 * apache2 has detected an error in your setup:
AH00526: Syntax error on line 54 of /etc/apache2/modules.d/40_mod_ssl.conf:
SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socache module (mod_socache_shmcb?).
 * ERROR: apache2 failed to start
Comment 3 Pacho Ramos gentoo-dev 2018-03-20 14:03:00 UTC
This are already being enabled by default:
# critical modules for the default config
MODULE_CRITICAL="
        authn_core
        authz_core
        authz_host
        dir
        mime
        unixd
"

Only socache_shmcb is missing, but it is being automatically enabled when ssl USE flag is set because, supposedly, only in that case is needed